/* Copy Animation */
.base-color {
    color: hsl(var(--main)) !important;
}

.copyInput {
    display: inline-block;
    line-height: 50px;
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}

.copied::after {
    position: absolute;
    top: 8px;
    right: 12%;
    width: 100px;
    display: block;
    content: "COPIED";
    font-size: 1em;
    padding: 5px 5px;
    color: #fff;
    background-color: #FF7000;
    border-radius: 3px;
    opacity: 0;
    will-change: opacity, transform;
    animation: showcopied 1.5s ease;
}

@keyframes showcopied {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }

    50% {
        opacity: 0.7;
        transform: translateX(40%);
    }

    70% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
    }
}

.cookies-card {
    width: 400px;
    padding: 25px;
    color: #1E2337;
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 999999;
    transition: all .5s;
    border-radius: 5px;
    box-shadow: 0 0 18px rgb(125 137 153);
    border-radius: 20px;
}

[data-theme="dark"] .cookies-card {
    background-color: hsl(var(--body-bg));
    color: hsl(var(--body-color));
}

[data-theme="dark"] .cookies-card__close:hover {
    color: hsl(var(--white));
}

.cookies-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 12px;
}

.cookies-card__title {
    font-size: inherit;

}

.cookies-card__close {
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    color: #797878;
    transition: all 0.2s;
}

.cookies-card__close:hover {
    color: #000;

}

.cookies-card__icon {
    color: hsl(var(--base));
    font-size: 48px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.cookies-card__content {
    margin-bottom: 0;
    font-size: 13px;
    margin-bottom: 24px;
}

.cookies-card__footer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookies-card__btn-outline {
    /* text-decoration: none;
    padding: 12px 20px;
    color: #001E00; */

}

/* .cookies-card__btn {
    color: #fff !important;
    text-decoration: none;
    padding: 8px 35px;
    margin: 3px 5px;
    display: inline-block;
    border-radius: 999px;
    background-color: #363636;
    transition: all 0.2s;
} */

/* .cookies-card__btn:hover {
    background-color: #0e0e0e;
} */


@media (max-width: 767px) {
    .cookies-card {
        width: calc(100% - 20px);
        left: 10px;
        bottom: 0;
        font-size: 14px;
        padding: 15px;
    }
}


.cookies-card.hide {
    bottom: -500px !important;
}

.radius--10px {
    border-radius: 10px;
}

.hover-input-popup {
    position: relative;
}

.input-popup {
    display: none;
}

.hover-input-popup .input-popup {
    display: block;
    position: absolute;
    bottom: 130%;
    left: 50%;
    width: 280px;
    background-color: #1a1a1a;
    color: #fff;
    padding: 20px;
    border-radius: 5px;
    transform: translateX(-50%);
    transition: all 0.3s;
}

.input-popup::after {
    position: absolute;
    content: '';
    bottom: -19px;
    left: 50%;
    margin-left: -5px;
    border-width: 10px 10px 10px 10px;
    border-style: solid;
    border-color: transparent transparent #1a1a1a transparent;
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}

.input-popup p {
    padding-left: 20px;
    position: relative;
}

.input-popup p::before {
    position: absolute;
    content: '';
    font-family: 'Line Awesome Free';
    font-weight: 900;
    left: 0;
    top: 4px;
    line-height: 1;
    font-size: 18px;
}

.input-popup p.error {
    text-decoration: line-through;
}

.input-popup p.error::before {
    content: "\f057";
    color: #ea5455;
}

.input-popup p.success::before {
    content: "\f058";
    color: #28c76f;
}



.show-filter {
    display: none;
}

@media(max-width:767px) {
    .responsive-filter-card {
        display: none;
        transition: none;
    }

    .show-filter {
        display: block;
    }
}



.gateway-card {
    padding: 15px;
}

.payment-card-title {
    padding: 13px 25px;
    text-align: center;
    background-color: hsl(var(--base));
    border-radius: 5px;
    border: 0;
    margin-bottom: 0px;
    color: #fff;
}

.payment-system-list {
    --thumb-width: 100px;
    --thumb-height: 40px;
    --radio-size: 12px;
    --border-color: #cccccf59;
    --hover-border-color: rgb(var(--main));
    background-color: #fff;
    border-radius: 5px;
    height: 100%;

}


.payment-system-list.is-scrollable {
    max-height: min(388px, 70vh);
    overflow-x: auto;
    padding-block: 4px;
}

.payment-system-list.is-scrollable::-webkit-scrollbar {
    width: 5px;
}

.payment-system-list.is-scrollable::-webkit-scrollbar {
    width: 5px;

}

.payment-system-list.is-scrollable::-webkit-scrollbar-thumb {
    background-color: rgb(var(--main));
    border-radius: 10px;
}

.payment-item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 18px;
    border: 1px solid #fff;
    border-top-color: var(--border-color);
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.payment-item:first-child {
    border-top-color: #fff;
    border-radius: 5px 5px 0 0;
}

.payment-item:has(.payment-item__radio:checked) {
    border-left: 3px solid hsl(var(--base));
    border-radius: 0px;
}

.payment-item__check {
    border: 3px solid transparent;
}

.payment-item:has(.payment-item__radio:checked) .payment-item__check {
    border: 3px solid hsl(var(--base));
}

.payment-item__info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    max-width: calc(100% - var(--thumb-width))
}

.payment-item__check {
    width: var(--radio-size);
    height: var(--radio-size);
    border: 1px solid hsl(var(--base));
    display: inline-block;
    border-radius: 100%;

}

.payment-item__name {
    padding-left: 10px;
    width: calc(100% - var(--radio-size));
    transition: all 0.3s;
}

.payment-item__thumb {
    width: var(--thumb-width);
    height: var(--thumb-height);
    text-align: right;
    padding-left: 10px;

    &:has(.text) {
        width: fit-content;
    }
}

.payment-item__thumb img {
    max-width: var(--thumb-width);
    max-height: var(--thumb-height);
    object-fit: cover;
}


.deposit-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}

.deposit-info__title {
    max-width: 50%;
    margin-bottom: 0px;
    text-align: left;
}

.deposit-info__input {
    max-width: 50%;
    text-align: right;
    width: 100%;
}

.deposit-info__input-select {
    border: 1px solid var(--border-color);
    width: 100%;
    border-radius: 5px;
    padding-block: 6px;
}

.deposit-info__input-group {
    border: 1px solid var(--border-color);
    border-radius: 5px;

    .deposit-info__input-group-text {
        align-self: center;
        padding-left: 5px;
        background: hsl(var(--black)/.1);
    }

}


.deposit-info__input-group .form--control {
    border: 0;
    height: 100%;
    text-align: right;
}

.deposit-info__input-group .form--control:focus {
    box-shadow: unset;
}

.info-text .text,
.deposit-info__input .text {
    font-size: 14px;

}

.deposit-info__title .text.has-icon {
    display: flex;
    align-items: center;
    gap: 5px
}

.total-amount {
    border-top: 1px solid var(--border-color);
}

.total-amount .deposit-info__title {
    font-weight: 600;
}

.payment-item__btn {
    border: 0;
    border-block: 1px solid var(--border-color);
    border-bottom: 0;
    background: #fff;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 15px;
    font-weight: 500;
}

.payment-item:hover+.payment-item__btn {
    border-top-color: #fff;
}

button .spinner-border {
    --bs-spinner-width: 1.5rem;
    --bs-spinner-height: 1.5rem;
}

.button-loader .spinner-border {
    --bs-spinner-width: 1rem;
    --bs-spinner-height: 1rem;
}

.purchase-option__card {
    display: flex;
    justify-content: space-around;
}

.purchase-option-card__item {
    padding: 40px 5px;
    border-radius: 5px;
    cursor: pointer;
    background-color: hsl(var(--secondary)/0.1);
    transition: all 0.3s ease-in-out;
}

@media screen and (max-width:425px) {
    .purchase-option-card__item {
        padding: 20px 5px;
    }
}


.purchase-option-card__item:has(.method-input:checked) {
    background-color: hsl(var(--base));
}

.dark-modal .purchase-option-card__item:has(.method-input:checked) .purchase-option-card__title {
    color: hsl(var(--title-color));
}

.dark-modal .purchase-option-card__item:has(.method-input:checked) .balance {
    color: hsl(var(--title-color)) !important;
}

.purchase-option-card__item:has(.method-input:checked) .purchase-option-card__icon i {
    color: hsl(var(--white));
}

.dark-modal .purchase-option-card__item:has(.method-input:checked) .purchase-option-card__icon i {
    color: hsl(var(--black));
}

.purchase-option-card__item .purchase-option-card__icon {
    font-size: 2.2rem;
    margin-bottom: 5px;
    line-height: 1;
}

.purchase-option-card__item .purchase-option-card__icon i {
    color: hsl(var(--base));
}

.plan-details div {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.note-wrapper__output {
    max-height: 350px !important;
    overflow: auto !important;
}

.note-wrapper__output::-webkit-scrollbar {
    width: 5px;
}

.note-wrapper__output::-webkit-scrollbar-thumb {
    background: hsl(var(--base));
    border-radius: 10px;
}

.skeleton-chat-item {
    display: flex;
    padding: 10px;
    margin-bottom: 10px;
    background: #f0f0f0;
    border-radius: 8px;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-chat-item .thumb {
    width: 50px;
    height: 50px;
    background: #e0e0e0;
    border-radius: 50%;
    margin-right: 10px;
}

.skeleton-chat-item .content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.skeleton-chat-item .content div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skeleton-chat-item .content .name {
    height: 10px;
    width: 35%;
    border-radius: 20px;
    background: #e0e0e0;
    margin-bottom: 5px;
}

.skeleton-chat-item .content .text {
    height: 8px;
    width: 80%;
    border-radius: 20px;
    background: #e0e0e0;
}

.skeleton-chat-item .content .time {
    height: 8px;
    width: 14%;
    border-radius: 20px;
    background: #e0e0e0;
}



@keyframes pulse {
    0% {
        background-color: #f0f0f0;
    }

    50% {
        background-color: #e0e0e0;
    }

    100% {
        background-color: #f0f0f0;
    }
}


/* Skeleton for contact details */
.skeleton {
    background: #e0e0e0;
    border-radius: 4px;
    animation: shimmer 1.5s infinite linear;
}

.skeleton-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 10px auto;
}

.skeleton-text {
    height: 16px;
    margin: 10px 0;
}

.skeleton-text-md {
    width: 120px;
    height: 20px;
    margin: 10px auto;
}

.skeleton-text-sm {
    width: 100%;
    height: 14px;
}

.skeleton-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 15px 0;
}

.skeleton-btn {
    width: 70px;
    height: 28px;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-color: #e0e0e0;
    }

    50% {
        background-color: #f0f0f0;
    }

    100% {
        background-color: #e0e0e0;
    }
}

.table-thumb {
    width: 45px;
    height: 45px;
    overflow: hidden;
    border-radius: 100%;
}

.apexcharts-menu-item {
    color: #000;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 14px;
}

.apexcharts-menu-item:hover {
    background-color: #333;
    color: #fff;
    cursor: pointer;
}

.apexcharts-menu-item i {
    color: #fff;
}

.apexcharts-menu-item .apexcharts-menu-icon {
    color: #fff;
}

.download-document {
    padding: 5px 10px;
    color: #fff;
    cursor: pointer;
}

.crypto-message,
.crypto-message .gateway-currency {
    color: #606576 !important;
}

.pointer {
    cursor: pointer !important;
}

.template-requirements ul {
    list-style: disc !important;
}

.template-requirements ul li {
    font-size: 15px !important;
    color: #606576 !important;
}

.importModal .progress {
    @apply w-full overflow-hidden rounded;
}

.importModal .progress-bar {
    @apply transition-all duration-300 ease-linear;
}

.importModal .bg-success {
    background-color: hsl(var(--base)) !important;
}

.importModal .progress-bar-striped {
    background-image: linear-gradient(45deg,
            rgba(255, 255, 255, 0.15) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.15) 75%,
            transparent 75%,
            transparent);
    background-size: 1rem 1rem;
}

.importModal .progress-bar-animated {
    animation: importModal-progress-bar-stripes 1s linear infinite;
}

@keyframes importModal-progress-bar-stripes {
    0% {
        background-position: 1rem 0;
    }

    100% {
        background-position: 0 0;
    }
}

.table-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name-short-form {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: hsl(var(--section-bg));
    border: 1px solid hsl(var(--border-color));
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    color: hsl(var(--black)/0.6);
}

.agent-info strong {
    font-weight: 600;
}

.agent-info .agent-url {
    color: hsl(var(--primary));
    font-weight: 500;
    font-size: 0.875rem;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 10px !important;
}

.select2+.select2-container .select2-selection.select2-selection--multiple {
    background: hsl(var(--section-bg));
    border-radius: 8px !important;
}

.dashboard-container .select2+.select2-container .select2-selection.select2-selection--multiple {
    border: 1px solid #c1c9d033 !important;
}

.dashboard-container .select2+.select2-container.select2-container--open .select2-selection__rendered,
.dashboard-container .select2+.select2-container.select2-container--focus .select2-selection.select2-selection--multiple,
.dashboard-container .select2+.select2-container.select2-container--open .select2-selection.select2-selection--multiple {
    border: 1px solid hsl(var(--base)) !important;
}

.select2+.select2-container .select2-selection--multiple .select2-search.select2-search--inline {
    line-height: 28px;
}

.select2+.select2-container .select2-selection--multiple .select2-selection__rendered {
    line-height: 25px;
    box-shadow: unset !important;
    background: transparent !important;
    padding-right: 8px;
}

.dashboard-container .select2+.select2-container .select2-selection--multiple .select2-selection__rendered {
    border: 0 !important;
}

.select2-container--default .select2-search__field {
    border-radius: 4px;
}

.select2-container--open .select2-dropdown {
    border-radius: 4px !important;
}

.select2-results__options::-webkit-scrollbar {
    width: 0px;
}

.select2-search__field {
    background-color: hsl(var(--section-bg)) !important;
}

.select2-selection--multiple .select2-search__field {
    background-color: transparent !important;
}

.select2+.select2-container:has(.select2-selection.select2-selection--multiple) {
    height: auto;
}


.coupon-apply-button {
    position: absolute;
    right: 0;
    top: 0;
    border-width: 0px;
    width: 25% !important;
    height: calc(100% - 10px);
    margin: 5px;
    border-radius: 4px !important;
    background-color: hsl(var(--success));
    color: hsl(var(--white)) !important;
    cursor: pointer;
    padding-block: 5px;
    display: flex;
    justify-content: center !important;
}

.coupon-apply-button.disable {
    background-color: hsl(var(--black)/0.3) !important;
    color: hsl(var(--secondary)) !important;
    pointer-events: none;
}

.coupon-apply-button.remove {
    background-color: hsl(var(--danger)) !important;
    color: hsl(var(--white)) !important;
}

/* ==================== Sidebar Collapse Styles Start ==================== */
.sidebar-collapse-btn {
    position: absolute;
    top: 20px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: hsl(var(--base));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sidebar-collapse-btn:hover {
    background: hsl(var(--base) / 0.9);
    transform: scale(1.1);
}

.sidebar-collapse-btn i {
    color: #fff;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.sidebar-menu.collapsed .sidebar-collapse-btn i {
    transform: rotate(180deg);
}

/* Collapsed sidebar styles */
.sidebar-menu {
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-menu.collapsed {
    width: 80px !important;
}

/* Logo image switching */
.sidebar-logo .logo-collapsed {
    display: none;
}

.sidebar-menu.collapsed .sidebar-logo .logo-expanded {
    display: none;
}

.sidebar-menu.collapsed .sidebar-logo .logo-collapsed {
    display: block;
    width: 40px;
    margin: 0 auto;
}

.sidebar-menu.collapsed .sidebar-menu-list__link .text,
.sidebar-menu.collapsed .sidebar-menu-list__title,
.sidebar-menu.collapsed .sidebar-submenu {
    display: none;
}

.sidebar-menu.collapsed .sidebar-menu-list__link {
    justify-content: center;
    padding: 12px 10px;
}

.sidebar-menu.collapsed .sidebar-menu-list__link .icon {
    margin-right: 0;
    font-size: 20px;
}

.dashboard .sidebar-menu.collapsed .has-dropdown > a::after,
.dashboard .sidebar-menu.collapsed .has-dropdown > a:after {
    display: none !important;
}


/* Adjust main content area when sidebar is collapsed */
.dashboard__right {
    transition: padding-left 0.3s ease;
}

body.sidebar-collapsed .dashboard__right {
    padding-left: 80px !important;
}

@media (max-width: 991px) {
    .sidebar-collapse-btn {
        display: none !important;
    }
    
    body.sidebar-collapsed .dashboard__right {
        padding-left: 0 !important;
    }
}
/* ==================== Sidebar Collapse Styles End ==================== */

/* ==================== Light Mode Inbox Customization Start ==================== */
:root:not([data-theme="dark"]) .chatbox-area__left .chatbox-wrapper__header .search-form .form--control {
    background-color: #f4f4f4 !important;
}

:root:not([data-theme="dark"]) .chatbox-wrapper__header .select2+.select2-container .select2-selection__rendered {
    background-color: #f4f4f4 !important;
}

:root:not([data-theme="dark"]) .chatbox-wrapper__header .custom--tab.tab-two .nav-item .nav-link:not(.active) {
    background-color: #f4f4f4 !important;
}

.chatbox-wrapper__tab {
    border-bottom: 1px solid hsl(var(--border-color));
    padding-bottom: 12px;
}

:root:not([data-theme="dark"]) .chatbox-area__left .chatbody .chat-list__item.active,
:root:not([data-theme="dark"]) .chatbox-area__left .chatbody .chat-list__item:hover {
    background-color: #f4f4f4 !important;
}

.single-message.message--right .message-content {
    background-color: #c3f5d7 !important;
}

:root:not([data-theme="dark"]) .single-message.message--left .message-content {
    background-color: #f4f4f4 !important;
}

[data-theme="dark"] .single-message.message--left .message-content {
    background-color: #f4f4f4 !important;
}
/* ==================== Light Mode Inbox Customization End ==================== */

/* ==================== Dark Mode Inbox Customization Start ==================== */
[data-theme="dark"] .chatbox-area__left {
    background: hsl(var(--section-bg));
}

[data-theme="dark"] .chatbox-area__body .chat-box__header {
    background: hsl(var(--section-bg));
    border: 1px solid #c1c9d066;
}

[data-theme="dark"] .chatbox-area__body .body-right {
    background: hsl(var(--section-bg));
}

[data-theme="dark"] .chatbox-area__body .chat-box__footer {
    background-color: hsl(var(--section-bg));
}


[data-theme="dark"] .chatbox-area__left .chatbox-wrapper__header .search-form .form--control {
    background-color: #3a3d54 !important;
}

[data-theme="dark"] .chatbox-wrapper__header .select2+.select2-container .select2-selection__rendered {
    background-color: #3a3d54 !important;
}

[data-theme="dark"] .chatbox-wrapper__header .custom--tab.tab-two .nav-item .nav-link:not(.active) {
    background-color: #3a3d54 !important;
    border-color: #55596d !important;
}

[data-theme="dark"] .chatbox-area__left .chatbody .chat-list__item.active,
[data-theme="dark"] .chatbox-area__left .chatbody .chat-list__item:hover {
    background-color: #3a3d54 !important;
}
/* ==================== Dark Mode Inbox Customization End ==================== */


/* ==================== Theme Toggle Button Customization Start ==================== */
.theme-toggle-btn:hover i {
    color: #25d466 !important;
}

/* ==================== Theme Toggle Button Customization End ==================== */

/* ==================== Login Page White Background Start ==================== */
.account.banner-bg {
    background-color: #ffffff !important;
}

.account.banner-bg::after {
    display: none !important;
}

.account-inner {
    background-color: #ffffff !important;
}

/* Desabilitar todos os overlays e pseudo-elementos na página de login */
.account.section-shape::before,
.account.section-shape::after {
    content: none !important;
    display: none !important;
}

body:has(.account.banner-bg) .body-overlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}
/* ==================== Login Page White Background End ==================== */
/* ==================== Language Selector Color Fix Start ==================== */
/* Tema claro - texto preto */
:root:not([data-theme="dark"]) .dashboard-header .language--dropdown .custom--dropdown__selected .text {
    color: #000000 !important;
}
/* Tema escuro - texto branco */
[data-theme="dark"] .dashboard-header .language--dropdown .custom--dropdown__selected .text {
    color: #ffffff !important;
}
[data-theme="dark"] .dashboard-header .language--dropdown .dropdown-list__item .text {
    color: #ffffff !important;
}
/* ==================== Language Selector Color Fix End ==================== */
/* ==================== User Info Email Color Fix Start ==================== */
/* Tema claro - email em cinza escuro */
:root:not([data-theme="dark"]) .dashboard .user-info__desc {
    color: #606576 !important;
}
/* Tema escuro - email em branco com opacidade */
[data-theme="dark"] .dashboard .user-info__desc {
    color: rgba(255, 255, 255, 0.8) !important;
}
/* ==================== User Info Email Color Fix End ==================== */

/* ==================== Dashboard Cards Dark Mode Fix Start ==================== */
[data-theme="dark"] .dashboard .dashboard-widget.widget-two {
    color: hsl(var(--black));
}
[data-theme="dark"] .dashboard-widget__icon-box {
    background-color: hsl(var(--white) / 0.08) !important;
}
[data-theme="dark"] .dashboard .dashboard-widget.widget-two .dashboard-widget__text {
    color: hsl(var(--body-color)) !important;
}
[data-theme="dark"] .dashboard .dashboard-widget.widget-two .dashboard-widget__number {
    color: hsl(var(--white)) !important;
}
[data-theme="dark"] .dashboard .dashboard-widget.widget-two .dashboard-widget__number .text {
    color: hsl(var(--body-color)) !important;
}
/* ==================== Dashboard Cards Dark Mode Fix End ==================== */
/* ==================== WhatsApp Message Reactions Start ==================== */
.single-message {
    position: relative;
}

.message-reactions {
    position: absolute;
    top: 4px;
    right: 8px;
    display: flex;
    gap: 4px;
    z-index: 10;
}

.reaction-emoji {
    display: inline-block;
    font-size: 16px;
    line-height: 20px;
    padding: 2px 6px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    cursor: default;
    transition: transform 0.2s ease;
}

.reaction-emoji:hover {
    transform: scale(1.2);
}

/* Dark mode adjustments for reactions */
[data-theme="dark"] .reaction-emoji {
    background-color: rgba(0, 0, 0, 0.6);
    box-shadow: 0 1px 3px rgba(255, 255, 255, 0.1);
}
/* ==================== WhatsApp Message Reactions End ==================== */

/* ==================== Quoted/Replied Messages Start ==================== */
.quoted-message {
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 4px;
    border-left: 4px solid;
    background-color: rgba(0, 0, 0, 0.05);
    position: relative;
}

/* Barra verde para mensagens enviadas (do usuário) */
.quoted-message.quoted--sent {
    border-left-color: #25d466;
}

/* Barra azul para mensagens recebidas (do contato) */
.quoted-message.quoted--received {
    border-left-color: #00a5f4;
}

.quoted-message-content {
    display: flex;
    flex-direction: column;
}

.quoted-message-text {
    font-size: 13px;
    line-height: 1.4;
    color: #667781;
    font-style: italic;
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* Dark mode adjustments for quoted messages */
[data-theme="dark"] .quoted-message {
    background-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .quoted-message-text {
    color: #b8bdc0;
}
/* ==================== Quoted/Replied Messages End ==================== */

/* ==================== Deleted Messages Start ==================== */
.message-deleted .message-content {
    opacity: 0.6;
    text-decoration: line-through;
    font-style: italic;
}

.deleted-message-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding: 6px 10px;
    background-color: rgba(255, 0, 0, 0.1);
    border-left: 3px solid #e74c3c;
    border-radius: 4px;
    font-size: 13px;
    color: #e74c3c;
    font-style: normal;
    text-decoration: none;
}

.deleted-message-indicator i {
    font-size: 16px;
}

.deleted-message-indicator span {
    font-weight: 500;
}
/* ==================== Deleted Messages End ==================== */

/* Dark mode adjustments for deleted messages */
[data-theme="dark"] .deleted-message-indicator {
    background-color: rgba(231, 76, 60, 0.15);
    color: #ff6b6b;
    border-left-color: #ff6b6b;
}

/* Keep text of deleted message visible but with reduced opacity */
.message-deleted .message-text,
.message-deleted p {
    opacity: 0.5;
    text-decoration: line-through;
}
/* ==================== Deleted Messages End ==================== */

/* ==================== Edited Messages Start ==================== */
.edited-indicator {
    font-size: 11px;
    font-style: italic;
    color: #8696a0;
    margin-left: 6px;
    font-weight: 400;
}
/* Dark mode adjustments for edited indicator */
[data-theme="dark"] .edited-indicator {
    color: #8696a0;
}
/* ==================== Edited Messages End ==================== */

/* ==================== Dark mode loader colors Start ==================== */
[data-theme="dark"] .preloader {
  background-color: hsl(var(--body-bg));
}

/* ==================== Dark mode loader colors End ==================== */


/* ==================== Contact List Dark Theme Start ==================== */
[data-theme="dark"] .chatbox-area__body .body-right {
    background-color: hsl(var(--sidebar-bg));
    border-left-color: hsl(var(--border-color));
}
/* ==================== Contact List Dark Theme End ==================== */


/* ==================== Media Section Start ==================== */
.details-content__media {
    margin-top: 20px;
}
.details-content__media .custom--tab {
    display: flex !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin-bottom: 12px !important;
    width: 100% !important;
}
.details-content__media .custom--tab .nav-item {
    flex: 0 0 auto !important;
    padding: 0 !important;
}
.details-content__media .custom--tab .nav-link {
    font-size: 16px !important;
    padding: 6px !important;
    width: auto !important;
    min-width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
}
.details-content__media .custom--tab .nav-link i {
    margin: 0 !important;
    color: hsl(var(--base)) !important;
    font-size: 20px !important;
}
.details-content__media .custom--tab .nav-link.active {
    border: none !important;
    border-bottom: 2px solid hsl(var(--base)) !important;
    border-radius: 6px 6px 0 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.media-tab-title {
    font-size: 14px;
    font-weight: 600;
    color: hsl(var(--body-color));
    margin-bottom: 12px;
    margin-top: 0;
}
.media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    max-height: 400px;
    overflow-y: auto;
}
.media-grid p {
    grid-column: 1 / -1;
    white-space: nowrap;
    text-align: left;
}
.media-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 1px;
    background-color: hsl(var(--section-bg-two));
    padding: 1px;
}
.media-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}
.media-thumbnail:hover {
    transform: scale(1.05);
}
.media-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}
.media-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    background-color: hsl(var(--section-bg-two));
    transition: background-color 0.2s;
}
.media-list-item:hover {
    background-color: hsl(var(--sidebar-item-hover));
}
.media-list-item i {
    font-size: 24px;
    color: hsl(var(--base));
}
.media-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.media-name {
    font-size: 13px;
    font-weight: 500;
    color: hsl(var(--body-color));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.media-date {
    font-size: 11px;
    color: hsl(var(--text-muted));
}
.media-list-item .btn {
    padding: 4px 8px;
    font-size: 14px;
}
.media-list-item .btn i {
    color: hsl(var(--white)) !important;
}
[data-theme="dark"] .media-item {
    background-color: hsl(var(--section-bg-two));
}
[data-theme="dark"] .media-list-item {
    background-color: hsl(var(--section-bg-two));
}
[data-theme="dark"] .media-list-item:hover {
    background-color: hsl(var(--sidebar-item-hover));
}
/* ==================== Media Section End ==================== */

/* ==================== Contact Details Scrollbar Start ==================== */
.chatbox-area__body .body-right {
    overflow-y: auto !important;
    max-height: calc(100vh - 80px) !important;
}
/* Estilização da barra de rolagem - tema claro */
.chatbox-area__body .body-right::-webkit-scrollbar {
    width: 6px;
}
.chatbox-area__body .body-right::-webkit-scrollbar-track {
    background: hsl(var(--section-bg-two));
    border-radius: 10px;
}
.chatbox-area__body .body-right::-webkit-scrollbar-thumb {
    background: hsl(var(--border-color));
    border-radius: 10px;
}
.chatbox-area__body .body-right::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--base));
}
/* Estilização da barra de rolagem - tema escuro */
[data-theme="dark"] .chatbox-area__body .body-right::-webkit-scrollbar-track {
    background: hsl(var(--section-bg-two));
}
[data-theme="dark"] .chatbox-area__body .body-right::-webkit-scrollbar-thumb {
    background: hsl(var(--border-color));
}
[data-theme="dark"] .chatbox-area__body .body-right::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--base));
}
/* ==================== Contact Details Scrollbar End ==================== */


/* ==================== Conversation Status Select Options Start ==================== */
.details-content__status select.form-select {
    font-size: 14px !important;
    border-width: 2px !important;
}
.details-content__status select.form-select option {
    font-size: 14px !important;
}
/* ==================== Conversation Status Select Options End ==================== */


/* ==================== Details and Note Buttons Start ==================== */
.profile-details__tab .custom--tab {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)) !important;
}
.profile-details__tab .custom--tab .nav-link {
    font-size: 12px !important;
    padding: 6px 12px !important;
}
/* ==================== Details and Note Buttons End ==================== */