/* .main-layout .main {
    overflow: unset;
} */
.main-layout .profile {
    display: block;
}

.main-layout .sidebar {
    overflow-x: unset;
}

.input-group-text {
    position: absolute;
    right: 20px;
    top: 36px;
}

.input-group-text {
    cursor: pointer !important;
}

.select2-container--default .select2-results__option {
    text-align: left !important;
}

.loader {
    width: 20px;
    margin: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 4px solid lightblue;
    border-right-color: white;
    animation: l2 1s infinite linear;
}

@keyframes l2 {
    to {
        transform: rotate(1turn);
    }
}

.message-content {
    word-wrap: break-word;
}

.message .message-content {
    padding: 1rem;
}

/* ria */
.go-to-bottom-button {
    background: #6660fb;
    color: #fff;
    padding: 0px 4px;
    border-radius: 50%;
}

.goto-button {
    text-align: center;
    position: sticky;
    bottom: 4px;
}

.message.user .message-content.message-image {
    background: transparent !important;
}

.message.user .message-content.message-image a {
    border-radius: 10px !important;
    -webkit-border-radius: 10px !important;
    -moz-border-radius: 10px !important;
    -ms-border-radius: 10px !important;
    -o-border-radius: 10px !important;
    padding: 1rem !important;
    background: linear-gradient(to bottom,
            rgba(217, 217, 217, 0) 0%,
            rgba(202, 216, 232, 1) 100%) !important;
    display: block !important;
    border: #d9d9d9 1px solid;
}

.message-image img {
    width: 150px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

.message-image .close-icon {
    text-align: end;
    cursor: pointer;
}

.message-image .close-icon i {
    color: #fff;
    background-color: #6660fb;
    font-size: 11px;
    border-radius: 50%;
    padding: 2px 3px;
}

.message-image div {
    color: #000;
}

.download-chat-content {
    color: #000;
}

.message-closeicon {
    background-color: #6660fb !important;
    border: 1px solid #6660fb !important;
    width: 20px;
    height: 20px;
}

.sidebar-sub-header .input-group-append .input-group-text {
    position: absolute;
    left: 0;
    top: 0;
    border: none !important;
    top: 9px;
    width: 50px;
    z-index: 99;
}

/* .sidebar-sub-header .input-group {
    border-right: 1px solid #ced4da;
} */
input.form-control.search.border-right-0.transparent-bg.pr-0 {
    padding-left: 40px !important;
    box-shadow: none !important;
    border: 1px solid #ced4da;
    border-radius: 10px !important;
    -webkit-border-radius: 10px;
}

.chat-footer .attachment .message-closeicon {
    margin-top: 15px;
}

.self .message-wrapper {
    display: flex;
    justify-content: end;
    align-items: center;
}

.user .message-wrapper {
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: row-reverse;
}

.message.self .message-content {
    margin-right: 0.25rem;
}

.btn-danger.focus,
.btn-danger:focus {
    box-shadow: none;
}

.message-edit_button {
    margin-right: 5px;
}

.message.user .message-edit_button {
    margin-left: 0.25rem;
}

.message .message-content a {
    text-decoration: underline;
}

.message.self .message-content a:hover {
    color: white;
}

.message.user .message-content a:hover {
    color: #8094ae;
}

#notificationModal a {
    color: #6660fb;
}

.notification-counter {
    width: 15px;
    height: 15px;
    background-color: #6660fb;
    border-radius: 50%;
    display: block;
    position: absolute;
    right: 0px;
    top: 5px;
    color: white;
    font-size: 11px;
    text-align: center;
}

/* CUSTOM CHAT NOTIFICATION POPUP */
#chat-container {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 300px;
    display: flex;
    flex-direction: column-reverse;
    /* Newest messages appear on top */
    gap: 10px;
    z-index: 999999;
}

.chat-notification {
    background: #6660fb;
    color: white;
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    animation: fadeIn 0.5s ease-in-out;
    position: relative;
}

.chat-notification img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-notification strong {
    color: #fff;
}

.chat-notification p {
    margin: 5px 0 0;
    font-size: 14px;
    flex: 1;
}

.chat-notification .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    margin-left: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.emoji-picker-container {
    position: absolute;
    bottom: 50px;
    right: 10px;
    display: none;
    z-index: 1000;
}

.chat-body.dragging {
    /* border: 2px dashed #665dfe; */
    background-color: rgba(52, 152, 219, 0.1);
    position: relative;
}

.chat-body.dragging::before {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(2px);
    content: "";
    z-index: 1;
}

.drop-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(52, 152, 219, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    top: 0;
    left: 0;
    z-index: 999;
    pointer-events: none;
}

.progress-container {
    width: 100%;
    background: #f3f3f3;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 10px 0;
    overflow: hidden;
}

.progress-bar {
    height: 20px;
    background: #4caf50;
    color: white;
    text-align: center;
    line-height: 20px;
    transition: width 0.3s;
}

.contacts-item.drag-over {
    background-color: #f0f0f0;
    transition: background-color 0.2s;
    border: 2px dashed #665dfe;
}

.message-bottom-wrapper {
    border: 1px solid #e5e9f2;
    align-items: center;
    display: flex;
    background: rgba(255, 255, 255, 1);
    border-radius: 60px;
    -webkit-border-radius: 60px;
    -moz-border-radius: 60px;
    -ms-border-radius: 60px;
    -o-border-radius: 60px;
    position: fixed;
    bottom: 44px;
    right: 30px;
    width: 64%;
    z-index: 1;
}

.message-send-textarea {
    height: 50px !important;
    background: transparent !important;
    padding: 0px 20px 0 42px !important;
    resize: none !important;
    padding-top: 0px !important;
}

.chat-body .chat-footer .form-control:focus {
    outline: 0;
    box-shadow: unset !important;
}

.closeFilePreview {
    position: absolute;
    top: -5px;
    right: 15px;
    font-size: 35px;
}

.chat-loader-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.chat-loader {
    width: 90px;
    padding: 8px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #665dfe;
    --_m: conic-gradient(#0000 10%, #000), linear-gradient(#000 0 0) content-box;
    -webkit-mask: var(--_m);
    mask: var(--_m);
    -webkit-mask-composite: source-out;
    mask-composite: subtract;
    animation: l3 1s infinite linear;
}

@keyframes l3 {
    to {
        transform: rotate(1turn);
    }
}

.typing-indicator {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.typing-indicator.typing-active {
    opacity: 1;
}

.typing-loader {
    display: inline-block;
    margin-left: 25px;
    width: 8px;
    aspect-ratio: 1;
    border-radius: 50%;
    animation: l5 1s infinite linear alternate;
}

@keyframes l5 {
    0% {
        box-shadow: 20px 0 #000, -20px 0 #0002;
        background: #000;
    }

    33% {
        box-shadow: 20px 0 #000, -20px 0 #0002;
        background: #0002;
    }

    66% {
        box-shadow: 20px 0 #0002, -20px 0 #000;
        background: #0002;
    }

    100% {
        box-shadow: 20px 0 #0002, -20px 0 #000;
        background: #000;
    }
}

.chat-content {
    background: url(../../images/chatbg.png) #e1e1e1 no-repeat top center;
    background-size: cover;
    border-left: none;
}

/* .avatar img {
    -webkit-box-shadow: 0px 0px 0px 5px #bcb8c5;
    -moz-box-shadow: 0px 0px 0px 5px #bcb8c5;
    box-shadow: 0px 0px 0px 5px #bcb8c5;
} */
.message-day {
    min-height: 80vh;
    padding-top: 1rem;
}

.nav-link.text-muted {
    color: #000 !important;
}

.w-80 {
    width: 78% !important;
}

.f-25 {
    font-size: 25px;
}

.editbtn a {
    display: inline-block;
    margin-left: 20px;
    width: 42px;
    height: 42px;
    /* line-height: 42px; */
    border-radius: 50%;
    text-align: center;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    background: linear-gradient(to right,
            rgba(4, 48, 96, 1) 0%,
            rgba(8, 83, 166, 1) 100%);
    padding: 11px;
}

.counts {
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 50%;
    text-align: center;
    background: #fd610e;
    position: absolute;
    right: -4px;
    top: -4px;
    color: #fff;
}

.message.user .message-content {
    padding: 1rem;
    background-color: #043060;
    color: #fff;
    margin-left: 3.05rem;
    border-radius: 10px 0 10px 10px;
    text-align: left;
    display: inline-block;
    max-width: 25rem;
    position: relative;
    -webkit-border-radius: 10px 0 10px 10px;
    -moz-border-radius: 10px 0 10px 10px;
    -ms-border-radius: 10px 0 10px 10px;
    -o-border-radius: 10px 0 10px 10px;
    min-width: 10rem;
}

/* .message.user .message-content::before {
    position: absolute;
    left: -19px;
    bottom: 0;
    width: 21px;
    height: 80%;
    background-size: 100% 100% !important;
    background: url(../../images/corner_color1.png) no-repeat;
    content: "";
} */
.message.self .message-content {
    padding: 1rem;
    background-color: #fff;
    color: #000;
    margin-left: 1.25rem;
    border-radius: 15px;
    text-align: left;
    display: inline-block;
    border: #dedede 1px solid;
    max-width: 25rem;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
    position: relative;
    min-width: 10rem;
}

/* .message.self .message-content::before {
    position: absolute;
    right: -19px;
    bottom: 0;
    width: 21px;
    height: 80%;
    background-size: 100% 100% !important;
    background: url(../../images/corner_color2.png) no-repeat;
    content: "";
} */
.message-content.message-image::before {
    display: none;
}

.btnGroups ul {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    /* background: #ececec;
    border-radius: 40px;
    -webkit-border-radius: 40px;
    -moz-border-radius: 40px;
    -ms-border-radius: 40px;
    -o-border-radius: 40px;
    padding: 0 60px; */
    width: 100%;
}

.btnGroups ul li a {
    font-size: 13.44px;
    font-weight: normal;
    color: #7d7d7d;
    padding: 8px 30px;
    display: block;
    border: #dedede 1px solid;
    border-radius: 6px;
}

.btnGroups {
    width: 100%;
    margin: 0.5rem 0;
}

.btnGroups2 {
    width: 100%;
    margin: 1rem 0 0;
}

.btnGroups2 p {
    font-size: 0.775rem;
}

.btnGroups2 ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.btnGroups2 .avatar.avatar-away:before,
.btnGroups2 .avatar.avatar-busy:before,
.btnGroups2 .avatar.avatar-offline:before,
.btnGroups2 .avatar.avatar-online:before {
    content: "";
    position: absolute;
    display: block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    bottom: 3px;
    right: -1px;
    border: none;
}

.btnGroups ul li.active a {
    color: #05305f;
    font-weight: 600;
    /* box-shadow: 0px -4px 0px 0px #665dfe inset;
    -webkit-box-shadow: 0px -4px 0px 0px #665dfe inset;
    -moz-box-shadow: 0px -4px 0px 0px #665dfe inset; */
}

.topSearch {
    position: absolute;
    left: 11px;
    top: 15px;
    width: 30px;
    padding: 0;
}

.message-date {
    color: #666;
    margin-right: 10px;
}

.seen-status i {
    font-size: 8px;
    position: relative;
    top: -5px;
}

.blurbg {
    /*filter: blur(8px);
    */
    /*-webkit-filter: blur(100px);
    */
    height: 43px;
    /*background: #fff;
    */
    position: fixed;
    bottom: 0px;
    right: 17px;
    width: 66%;
    backdrop-filter: blur(10px);
    border-radius: 0;
    z-index: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    -ms-border-radius: 0;
    -o-border-radius: 0;
}

.chatCount {
    width: 20px;
    height: 20px;
    line-height: 20px;
    background: #05305f;
    text-align: center;
    color: #fff;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    font-size: 10px;
}

.chat-footer.blockuser svg {
    width: 20px;
    margin-right: 10px;
    float: left;
}

.chat-footer.blockuser svg path {
    fill: #ff337c !important;
}

.fileupWrap {
    border-radius: 40px;
    background: #fff !important;
    overflow: hidden;
    /* margin: 0 0 391px; */
    top: -41px;
    position: relative;
    width: 94%;
    left: 25px;
}

.pointer {
    cursor: pointer;
}

.dropWrap {
    z-index: 9999;
    color: #6660fb;
    backdrop-filter: blur(2px);
}

.dropWrap .bg-white {
    background-color: #ffffffbb !important;
}

/* .dropWrap svg path {stroke: #6660fb;} */
.sidebar-header h3 small {
    display: block;
    font-size: 14px;
    color: #6f6e6e;
}

.contacts-item.active .contacts-link {
    background: linear-gradient(to right,
            rgba(204, 204, 204, 1) 0%,
            rgba(204, 204, 204, 0.21) 100%);
    border-radius: 30px 0 0 30px;
    -webkit-border-radius: 30px 0 0 30px;
    -moz-border-radius: 30px 0 0 30px;
    -ms-border-radius: 30px 0 0 30px;
    -o-border-radius: 30px 0 0 30px;
    /* padding: 0.3rem 0.65rem 0.3rem 0.3rem; */
}

.contacts-item.active .avatar {
    height: 40px;
    width: 40px;
    min-width: 40px;
}

.topfix {
    /* filter: blur(8px); */
    position: fixed;
    top: 64px;
    right: 0;
    width: 67.5%;
    background: #e7e8ea;
    padding: 5px 20px;
    z-index: 1;
}

.topfix .media {
    display: flex;
    align-items: flex-start;
    /* flex: 1; */
    width: 50%;
    flex: 0 0 50%;
}

.rightInfos li a {
    padding: 0 0 0 15px;
}

.fiximg img {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    margin-right: 5px;
    min-width: 40px;
}

.chat-body .chat-header {
    z-index: 99;
}

.message.user .message-content.message-image .dropdown a {
    display: block !important;
    border-width: 0px !important;
    border-style: solid;
    border-color: transparent !important;
    border-image: initial;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
    -ms-border-radius: 0 !important;
    -o-border-radius: 0 !important;
}

.chat-header .nav-item svg {
    width: 16px;
}

span.mic {
    position: absolute;
    left: 15px;
    font-size: 18px;
    top: 14px;
}

.profile .form-control {
    background: #e7e7e7;
    padding-right: 43px !important;
}




.profile .card-body label {
    font-weight: 600;
}


.invalid-feedback {
    text-align: start !important;
}

