::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background: #c5cdd7 !important;
    border-radius: 10px;
    border: 3px solid rgba(0, 0, 0, 0);
    cursor: pointer;
}

::-webkit-scrollbar-thumb:hover {
    background: #a2adb7;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0);
}

.loader_bg {
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.5);
    z-index: 1;
    display: none;
}

.loader {
    width: 150px;
    height: 150px;
    display: inline-block;
    padding: 0px;
    text-align: left;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loader span {
    position: absolute;
    display: inline-block;
    width: 150px;
    height: 150px;
    border-radius: 100%;
    background: rgba(114, 105, 239, 1);
    -webkit-animation: loader3 1.5s linear infinite;
    animation: loader3 1.5s linear infinite;
}

.loader span:last-child {
    animation-delay: -0.9s;
    -webkit-animation-delay: -0.9s;
}

@keyframes loader3 {
    0% {
        transform: scale(0, 0);
        opacity: 0.8;
    }

    100% {
        transform: scale(1, 1);
        opacity: 0;
    }
}

@-webkit-keyframes loader3 {
    0% {
        -webkit-transform: scale(0, 0);
        opacity: 0.8;
    }

    100% {
        -webkit-transform: scale(1, 1);
        opacity: 0;
    }
}

.chat-welcome-section {
    display: flex;
    width: 100%;
    height: 100dvh;
    align-items: center;
    justify-content: center;
    position: relative;
}

.media {
    display: flex;
    align-items: flex-start;
}

.media-body {
    flex: 1;
}

.image-remove {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 9px;
    border: 1px solid white;
    width: 18px;
    height: 18px;
    cursor: pointer;
    color: white;
    line-height: 18px;
    text-align: center;
    top: 5px;
    right: 5px;
}

#settingprofile .form-control:disabled {
    background-color: #ffffff;
    padding-right: 0px;
    padding-left: 0px;
    border: none;
}

.list-inline-item [download] {
    display: inline-block;
    background: #00000050;
    border-radius: 20px;
}

.no-leatest-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: calc(100dvh - 280px);
}


.scroll-bottom-btn {
    z-index: 1000 !important;
    bottom: 150px;
    right: 0px;
    width: 35px;
    height: 35px;
    position: absolute;
    background: aliceblue;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
}


.scroll-bottom-btn:hover {
    background: #7269ef;
    color: white;
}

.form-select:focus {
    border-color: #e0e5e9;
    outline: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    background-color: var(--bs-white) !important;
}



/* dropdown animation */

#attachment-bt {
    padding: 0px !important;
    height: 42px;
    display: flex;
    align-items: center;
}

#attachmentn-btn:hover {
    transition: all 0.2s ease-in-out;
}


.rotate {
    transform: rotate(45deg);
}

/* custom css */
.bg-pattern {
    background: var(--bg-message) url(../images/chat-bg.svg);
    background-size: 700px 700px;
    background-blend-mode: var(--bg-message-blend);
}

@media (min-width: 991px) {
    .ctext-wrap-content {
        max-width: 99ch;
    }
}

.menu-icon {
    background: var(--bs-dark-bg-subtle);
    width: 35px;
    height: 35px;
    align-items: center;
    justify-content: center;
    display: flex;
    border-radius: 3px;
    cursor: pointer;
}

@media (max-width: 767px) {

    .profile-leftsidebar {
        transform: translateX(0);
        transition: all 0.3s ease-in-out;
    }

    .side-menu.show+.profile-leftsidebar {
        transform: translateX(72px);
    }

}

#newConversationteModal .iti {
    -webkit-box-flex: 1 !important;
    flex-grow: 1 !important;
    width: 100%;
}

#reefModal .iti {
    -webkit-box-flex: 1 !important;
    flex-grow: 1 !important;
}

.iti .error-message {
    color: #ff0000;
}

.cursor-pointer {
    cursor: pointer;
}

.form-check-input {
    border: 1px solid #9e8aff;
}



.coun-box {
    border-radius: 5px;
    padding: 30px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.coun-box i {
    font-size: 40px;
    color: #7269ef;
}

.coun-box h4 {
    font-size: 16px;
    margin-bottom: 0 !important;
}



.coun-box h2 {
    font-size: 30px;
}

.loading-state::after {
    background: #ffffff80;
    width: 100%;
    height: 100%;
    content: "";
    top: 0px;
    position: absolute;
    transition: 0.5s;

}

.fs-big {
    font-size: 40px;
}

#quickReplyList .focused {
    background: #f2f2f2 !important;
}

#quickReplyList li:hover {
    background: #f2f2f2 !important;
    cursor: pointer;
}

.exit_group a:hover {
    background-color: #f8f9fa;
}

.dropdown-divider {
    height: 0;
    margin: 0.5rem 0;
    overflow: hidden;
    border-top: 1px solid var(--bs-border-color);
}

/* less than 1366px */
@media (max-width: 1366px) {
    .coun-box {
        padding: 20px;
    }

    .coun-box h4 {
        font-size: 14px;
        color: #6c6c6c;
        margin-bottom: 0 !important;
    }

    .coun-box h2 {
        font-size: 25px;
        color: #333;
    }
}

.table.bg-body-secondary-table>:not(caption)>*>* {
    background-color: #ffffff00 !important;
}

.text-of-15ch {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 15ch;
}

/* less than 1550px */
@media (max-width: 1550px) {
    .text-of-15ch {
        max-width: 10ch;
    }
}

.btn.border-initial {
    border-color: initial !important;
}


.chat-leftsidebar.full {
    overflow-y: auto;
}

@media screen and (min-width: 768px) {
    .chat-leftsidebar.full {
        min-width: calc(100% - 75px);
        max-width: calc(100% - 75px);
    }

}



@media (min-width: 576px) {
    .vh-sm-100 {
        height: 100vh !important;
    }
}

@media (min-width: 768px) {
    .vh-md-100 {
        height: 100vh !important;
    }
}

@media (min-width: 992px) {
    .vh-lg-100 {
        height: 100vh !important;
    }
}

@media (min-width: 1200px) {
    .vh-xl-100 {
        height: 100vh !important;
    }
}



.chat-conversation {
    height: unset !important;
    overflow-y: auto;
    position: relative;
    flex: 1 1 auto;
}

.chat-container {
    max-height: 100%;
    overflow: hidden;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.hover-bg-body:hover {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-body-bg-rgb), var(--bs-bg-opacity)) !important;
}

.text-link {
    color: rgba(var(--bs-body-color-rgb), var(--bs-text-opacity)) !important;
    text-decoration: none;
    cursor: pointer;
}

.text-link:hover {
    color: #7269ef !important;
    text-decoration: underline;
}

.private-msg-bg {
    background-color: var(--private-msg-bg) !important;
}

.private-msg-bg .category-icon {
    color: var(--private-msg-text) !important;
}

.chat-conversation .right .conversation-list .ctext-wrap .private-msg-bg:before {
    border-top-color: var(--private-msg-bg) !important;
    border-right-color: var(--private-msg-bg) !important;
}


#assignedNav {
    display: flex;
    border-bottom: 1px solid #d9dde6;
    position: relative;
}

/* Tab link styling */
#assignedNav .tab-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 2px;
    min-height: 40px;
    cursor: pointer;
    color: var(--bs-secondary-color);
    position: relative;
    font-weight: 500;
}

/* Active tab link styling */
#assignedNav .tab-link.active {
    color: #7269ef;
    font-weight: bold;
}

/* Hover effect for tab links */
#assignedNav .tab-link:hover {
    color: #7269ef;
    background-color: var(--bs-light);
}

/* Underline element */
#assignedNav .underline {
    position: absolute;
    bottom: 0;
    height: 2px;
    background-color: #7269ef;
    transition: left 0.25s ease-out, width 0.25s ease-out;
}

.custom-optgroup-header {
    background-color: #fff !important;
}

/* Styles for larger devices */
@media (min-width: 768px) {
    .offcanvas {
        --bs-offcanvas-width: 500px;
        --bs-offcanvas-padding-x: 2.4rem;
    }

    .offcanvas-body {
        max-width: 90%;
    }
}


/* audioplayer css starts here */
.audioplayer {
    --color-border: #dde2e6;
    --color-primary: #664dc9;
    --color-primary-light: rgba(102, 77, 201, 0.2);
    --color-secondary: #664dc9;
    --color-secondary-light: rgba(102, 77, 201, 0.1);
    --color-background: #fff;
    --color-gray-dark: rgba(51, 51, 51, 0.6);
    --color-gray-light: #bec8d2;
    --color-speed-text: #fff;
    --color-speed-bg: #664dc9;
    --color-speed-bg-hover: #664dc9;
    --color-control-focus: rgba(0, 89, 255, 0.2);

    --size-audioplayer-width: 100%;
    --size-playpause: 40px;
    --size-time-font: 12px;
    --size-bar-height: 12px;
    --size-knob: 12px;
    --size-knob-offset: -5px;
    --size-border-radius: 4px;
    --size-control-padding: 8px 10px;
    --size-control-font: 12px;
    --size-margin-horizontal: 7px;
    --size-margin-vertical: 5px;

    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    width: var(--size-audioplayer-width);
    margin: var(--size-margin-vertical) 0;
    align-items: center;
    border-radius: var(--size-border-radius);
    background: var(--color-background);
}

.audioplayer-playpause {
    display: flex;
    justify-content: center;
    align-items: center;
    width: var(--size-playpause);
    height: var(--size-playpause);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.audioplayer:not(.audioplayer-playing) .audioplayer-playpause {
    background: transparent;
    border: 1px solid var(--color-primary);
}

.audioplayer:not(.audioplayer-playing) .audioplayer-playpause:hover {
    background: var(--color-primary-light);
}

.audioplayer-playing .audioplayer-playpause {
    background: transparent;
    border: 1px solid var(--color-secondary);
}

.audioplayer-playing .audioplayer-playpause:hover {
    background: var(--color-secondary-light);
}

.audioplayer:not(.audioplayer-playing) .audioplayer-playpause a {
    content: "";
    justify-content: center;
    width: 0;
    height: 0;
    margin-left: 2px;
    border-top: 7px solid transparent;
    border-right: none;
    border-bottom: 7px solid transparent;
    border-left: 12px solid var(--color-primary);
}

.audioplayer-playing .audioplayer-playpause a {
    content: "";
    display: flex;
    justify-content: space-between;
    width: 12px;
    height: 14px;
}

.audioplayer-playing .audioplayer-playpause a::before,
.audioplayer-playing .audioplayer-playpause a::after {
    content: "";
    width: 4px;
    height: 14px;
    background-color: var(--color-secondary);
}

.audioplayer-time {
    display: flex;
    justify-content: center;
    font-size: var(--size-time-font);
    color: var(--color-gray-dark);
}

.audioplayer-time-current {
    margin: 0 var(--size-margin-horizontal);
}

.audioplayer-time-duration {
    margin: 0 var(--size-margin-horizontal);
}

.audioplayer-bar {
    position: relative;
    display: flex;
    margin: 0 var(--size-margin-horizontal);
    height: var(--size-bar-height);
    flex-basis: 0;
    flex-grow: 1;
    cursor: pointer;
}

.audioplayer-bar::before {
    content: "";
    position: absolute;
    top: 5px;
    width: 100%;
    height: 2px;
    background-color: var(--color-border);
}

.audioplayer-bar>div {
    position: absolute;
    left: 0;
    top: 5px;
}

.audioplayer-bar-loaded {
    z-index: 1;
    height: 2px;
    background: var(--color-gray-light);
}

.audioplayer-bar-played {
    flex-direction: row-reverse;
    z-index: 2;
    height: 2px;
    background: linear-gradient(to right,
            var(--color-primary),
            var(--color-secondary));
}

.audioplayer-bar-played::after {
    display: flex;
    position: absolute;
    content: "";
    box-sizing: border-box;
    top: var(--size-knob-offset);
    right: -1px;
    margin-right: -5px;
    width: var(--size-knob);
    height: var(--size-knob);
    background-color: var(--color-background);
    border-radius: 50%;
}

.audioplayer:not(.audioplayer-playing) .audioplayer-bar-played::after {
    border: 2px solid var(--color-gray-light);
}

.audioplayer-playing .audioplayer-bar-played::after {
    border: 2px solid var(--color-primary);
}

/* Speed control styles */
.audioplayer-speed {
    display: flex;
    align-items: center;
    margin-left: var(--size-margin-horizontal);
}

.audioplayer-speed-button {
    padding: var(--size-control-padding);
    font-size: var(--size-control-font);
    color: var(--color-speed-text);
    background-color: var(--color-speed-bg);
    border: 1px solid #ccc;
    border-radius: var(--size-border-radius);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.audioplayer-speed-button:hover {
    background-color: var(--color-speed-bg-hover);
}

.audioplayer-speed-button:focus {
    outline: none;
}

/* Responsive adjustments */
@media screen and (max-width: 679px) {
    .audioplayer-speed {
        margin-left: 10px;
    }

    .audioplayer-speed-button {
        padding: 3px 6px;
        font-size: 10px;
    }
}

/* audioplayer css ends here */


@media only screen and (max-width: 768px) {
    .flip-scroll thead tr {
        display: block;
    }

    .flip-scroll th {
        width: auto !important;
        display: block;
        text-align: right;
    }

    .flip-scroll td {
        display: block;
        min-height: 1.25em;
        text-align: left;
    }

    .flip-scroll table {
        border-collapse: collapse;
        border-spacing: 0;
        display: block;
        position: relative;
        width: 100%
    }

    .flip-scroll thead {
        display: block;
        float: left
    }

    .flip-scroll tbody {
        display: block;
        width: auto;
        position: relative;
        overflow-x: auto;
        white-space: nowrap
    }

    .flip-scroll tbody tr {
        display: inline-block;
        vertical-align: top;
    }
}

.chat-conversation .left .conversation-list .ctext-wrap-content a {
    color: #fff;
}

.chat-conversation .conversation-list .ctext-wrap-content a {
    text-decoration: underline !important;
}