﻿/* ========================================================================
     Root
 ========================================================================== */

/* ========================================================================
    Drop-zone
 ========================================================================== */

:root {
    /* Các màu global*/
    --primary-color: #8105BD;
    --light-mode-surface: #FFFFFF;
    --light-mode-bg: #FCF8FF;
    --secondary-color: #F72585;
    --linear-color: linear-gradient( to right, #8105BD 0%, #EF20DB 34%, #F72585 69%, #FF6A00 100% );
    --primary-light: #EEE3F8;
    --secondary-light: #FEE3EE;
    --secondary-dark: #B10A59;
    --bg-button-color: #F5F5FA;
    --bg-badge-color: #F5F5FA;
    --bg-badge-userinfo-color: #FFFFFF;
    --color-text-light: #000000;
    --color-text-white: #ffffff;
    /* Màu nền sidebar */
    --page-bg: #FCF8FF;
    --sidebar-bg: #FFFFFF;
    --sidebar-border: #EEE3F8;
    /* Màu item inactive / active */
    --sidebar-item-bg: transparent;
    --sidebar-item-hover-bg: #f3e8ff;
    --sidebar-item-active-bg: #eee3f8;
    --sidebar-item-color: #333;
    --sidebar-item-hover-color: #9b4de0;
    --sidebar-item-active-color: #8105bd;
    --sidebar-item-bar-color: #eee3f8;
    /* Màu nền logo brand*/
    --bg-logo-brand: #FFFFFF;
    --border-color-menu-item: #979797;
    /* Màu vạch active */
    --header-height: 70px;
    --header-spacing: 10px;
    --ai-theme-mode: #FCF8FF;
    --ai-textarea-mode: #EEE3F8;
    --ai-dropzone-mode: #FCF8FF;
    --brandkit-text: #8105BD;
}

[data-bs-theme="dark"] {
    --primary-color: #FFFFFF; /* Màu chủ đạo */
    --light-mode-surface: #333333; /* Màu bề mặt */
    --light-mode-bg: #333333; /* Màu nền chính */
    --secondary-color: #28a745; /* Có thể giữ xanh lá */
    --linear-color: #FFFFFF;
    --primary-light: #3E0460; /* Ô sáng tối hơn */
    --secondary-light: #3A3A4D;
    --bg-button-color: #979797;
    --bg-badge-color: #383838;
    --bg-badge-userinfo-color: #383838;
    --color-text-light: #FFFFFF;
    --page-bg: #0D0415;
    --sidebar-bg: #333333;
    --sidebar-border: #2E2E2E;
    --sidebar-item-bg: transparent;
    --sidebar-item-hover-bg: #2A2A3D;
    --sidebar-item-active-bg: #3E0460;
    --sidebar-item-color: #CCC;
    --sidebar-item-hover-color: #5C78FF;
    --sidebar-item-active-color: #FFFFFF;
    --sidebar-item-bar-color: #5C78FF;
    --bg-logo-brand: #FFFFFF;
    --border-color-menu-item: #979797;
    --header-height: 70px;
    --ai-theme-mode: #333333;
    --ai-textarea-mode: #383838;
    --header-spacing: 10px;
}

/*ẩn scroll*/
*::-webkit-scrollbar {
  display: none;
}

/*textarea cho toàn cục*/
*::-webkit-resizer {
    /* Đặt ảnh SVG làm nền */
    background-image: url('../theme/images/icon/resizer-custome.svg');
    /* Cài đặt cho ảnh nền */
    background-repeat: no-repeat;
    background-position: center; /* Căn icon vào giữa nút */
    /* Điều chỉnh kích thước icon cho vừa vặn */
    background-size: 18px 18px;
/*    background-position: right 5px bottom 5px;*/
    /* Xóa viền và nền mặc định của trình duyệt  quan trọng*/
    border: none;

    background-color: transparent;
    
    width: 18px;
    height: 18px;
}

.dropzone {
    display: block !important;
    background-color: var(--bs-info-bg-subtle) !important;
    border-radius: 20px !important;
    border: 1px solid white !important;
}

.dropzone {
    border: 1px solid var(--bs-border-color) !important;
}

.dropzone .dz-preview.dz-image-preview {
    background: transparent !important;
}

.dropzone .dz-preview .dz-remove {
    margin-top: 10px;
    font-size: 1rem !important;
    font-weight: bold;
}

.dz-preview:hover .dz-error-message {
    display: none !important;
}

.dz-image:hover ~ .dz-error-message {
    display: block !important;
}

.dropzone .dz-preview .dz-image {
    width: 80px !important;
    height: 80px !important;
}

.dropzone .dz-preview {
    min-height: 0 !important;
}

.dz-remove {
    text-decoration: none !important;
    cursor: pointer;
}

.dz-remove:hover {
    text-decoration: none !important;
}

.dropzone {
    padding: 0;
    min-height: 100px !important;
    background-color: #fffbfb !important;
    border: 1px dotted navy !important;
    padding: 0 !important;
}

.hide-menu {
    white-space: nowrap;
}

.app-header .navbar .navbar-nav .nav-item .nav-link {
    padding: 8px 10px;
}

.progress {
    background-color: #ebeef5;
}

#documentRootName {
    /* width: 120% !important;*/
    /*border: var(--bs-border-width) solid #DFE5EF;*/
    border: unset !important;
}

#documentRootName:focus {
    width: 120% !important;
    border: var(--bs-border-width) solid #DFE5EF !important;
}

/*Partail QR*/

.success-card {
    max-width: 500px;
    margin: 60px auto;
    padding: 30px;
    border-radius: 15px;
    background: var(--light-mode-surface);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}

.success-icon {
    font-size: 90px;
    animation: popIn 0.6s ease forwards;
}

.performance-btn {
    /* Mặc định cho mobile */
    float: none;
    display: block; /* Cho dễ nhìn trên mobile */
    margin: 0 3rem; /* căn giữa nếu muốn */
}

@media (min-width: 768px) {
    .performance-btn {
        float: right;
        margin: 0; /* bỏ margin nếu muốn dính bên phải */
        display: inline-block;
    }
}
.badge-phoenix-success {
    color: #3ed667 !important;
    font-size: 14px !important;
}
.badge-phoenix-danger {
        color: red !important;
        font-size: 14px !important;
    }

/* ===== CƠ BẢN CHO LINK MENU (active + inactive) ===== */
.sidebar-nav ul .sidebar-item > .sidebar-link,
.sidebar-bottom .sidebar-item > .sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px; /* khoảng cách icon và text */
    padding: 10px 20px; /* padding trên/dưới + phải */
    padding-left: 32px; /* dành chỗ cho vạch active */
    position: relative;
    box-sizing: border-box;
    color: var(--color-text-light);
    margin: 0px 0px 2px;
}

    /* ===== VẠCH BÊN TRÁI ===== */
    .sidebar-nav ul .sidebar-item > .sidebar-link::before,
    .sidebar-bottom .sidebar-item > .sidebar-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -12px; /* vị trí của vạch */
        width: 8px;
        height: 100%;
        background-color: var(--sidebar-item-active-bg);
        border-radius: 0 9999px 9999px 0;
        display: none; /* chỉ hiện khi active hoặc hover */
    }

    /* ===== CĂN ICON ===== */
    .sidebar-nav ul .sidebar-item > .sidebar-link span:first-child,
    .sidebar-bottom .sidebar-item > .sidebar-link span:first-child {
        flex-shrink: 0;
        width: 24px;
        display: flex;
        justify-content: center;
    }

    /* ===== ACTIVE ===== */
    .sidebar-nav ul .sidebar-item > .sidebar-link.active,
    .sidebar-bottom .sidebar-item > .sidebar-link.active {
        background-color: var(--sidebar-item-active-bg) !important;
        color: var(--sidebar-item-active-color) !important;
        border-radius: 15px !important;
        font-weight: 500;
        transition: all 0.2s ease-in-out;
        padding: 10px 20px !important;
        display: flex;
        align-items: center;
        gap: 10px;
        position: relative;
        margin-left: 15px; /* để chừa chỗ cho vạch */
        width: calc(100% - 16px);
        box-sizing: border-box;
    }

        /* ===== ACTIVE - HIỆN VẠCH ===== */
        .sidebar-nav ul .sidebar-item > .sidebar-link.active::before,
        .sidebar-bottom .sidebar-item > .sidebar-link.active::before {
            display: block;
        }

    /* ===== HOVER MENU KHÔNG ACTIVE ===== */
    .sidebar-nav ul .sidebar-item > .sidebar-link:not(.active):hover,
    .sidebar-bottom .sidebar-item > .sidebar-link:not(.active):hover {
        background-color: var(--sidebar-item-hover-bg);
        color: var(--sidebar-item-hover-color);
        border-radius: 9999px;
        padding-left: 32px;
        position: relative;
        display: flex;
        align-items: center;
        gap: 10px;
        transition: all 0.2s ease-in-out;
    }

/* Xóa padding cho ul trong sidebar-nav */
.sidebar-nav ul,
.sidebar-bottom {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0;
}

    /* Xóa padding cho li bên trong nếu cần */
    .sidebar-nav ul li,
    .sidebar-bottom li {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

/* Scroll-sidebar */
.scroll-sidebar {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

    .scroll-sidebar ul,
    .scroll-sidebar .sidebar-bottom {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

/* ============================= */
/* === MINI SIDEBAR SUPPORT ==== */
/* ============================= */

/* Khi sidebar mini/collapsed */
#main-wrapper[data-layout=vertical][data-sidebartype=mini-sidebar]
.left-sidebar .sidebar-nav ul .sidebar-item .sidebar-link,
#main-wrapper[data-layout=vertical][data-sidebartype=mini-sidebar]
.left-sidebar .sidebar-bottom .sidebar-item .sidebar-link {
    padding-left: 32px !important; /* giữ chỗ cho vạch active */
    padding-right: 10px !important; /* hẹp lại khi collapsed */
}

/* Hover mở rộng - giữ padding đều */
#main-wrapper[data-layout=vertical][data-sidebartype=mini-sidebar]
.left-sidebar:hover .sidebar-nav ul .sidebar-item .sidebar-link,
#main-wrapper[data-layout=vertical][data-sidebartype=mini-sidebar]
.left-sidebar:hover .sidebar-bottom .sidebar-item .sidebar-link {
    padding-left: 32px !important;
    padding-right: 20px !important;
}

/* Active khi collapsed */
#main-wrapper[data-layout=vertical][data-sidebartype=mini-sidebar]
.left-sidebar .sidebar-nav ul .sidebar-item .sidebar-link.active,
#main-wrapper[data-layout=vertical][data-sidebartype=mini-sidebar]
.left-sidebar .sidebar-bottom .sidebar-item .sidebar-link.active {
    margin-left: 0 !important;
    width: auto !important;
    padding-left: 32px !important;
}

/* Ẩn vạch khi collapsed */
#main-wrapper[data-layout=vertical][data-sidebartype=mini-sidebar]
.left-sidebar .sidebar-nav ul .sidebar-item .sidebar-link.active::before,
#main-wrapper[data-layout=vertical][data-sidebartype=mini-sidebar]
.left-sidebar .sidebar-bottom .sidebar-item .sidebar-link.active::before {
    display: none !important;
}

/* Hover mở rộng - trở lại đầy đủ */
#main-wrapper[data-layout=vertical][data-sidebartype=mini-sidebar]
.left-sidebar:hover .sidebar-nav ul .sidebar-item .sidebar-link.active,
#main-wrapper[data-layout=vertical][data-sidebartype=mini-sidebar]
.left-sidebar:hover .sidebar-bottom .sidebar-item .sidebar-link.active {
    margin-left: 15px !important;
    width: calc(100% - 16px) !important;
}

    /* Khi hover mở rộng - hiện lại vạch */
    #main-wrapper[data-layout=vertical][data-sidebartype=mini-sidebar]
    .left-sidebar:hover .sidebar-nav ul .sidebar-item .sidebar-link.active::before,
    #main-wrapper[data-layout=vertical][data-sidebartype=mini-sidebar]
    .left-sidebar:hover .sidebar-bottom .sidebar-item .sidebar-link.active::before {
        display: block !important;
    }

    /* Hiện text khi hover mở rộng */
    #main-wrapper[data-layout=vertical][data-sidebartype=mini-sidebar]
    .left-sidebar:hover .sidebar-nav ul .sidebar-item .sidebar-link.active .hide-menu,
    #main-wrapper[data-layout=vertical][data-sidebartype=mini-sidebar]
    .left-sidebar:hover .sidebar-bottom .sidebar-item .sidebar-link.active .hide-menu {
        display: inline !important;
    }

/* Logo khi sidebar mở */
.logo-full {
    height: 80px; /* logo chính to vừa đẹp */
    width: auto;
    display: block;
}

.logo-icon {
    display: none; /* Ẩn icon nhỏ mặc định */
    border-radius: 12px; /* Bo góc cho logo */
}

/* Logo khi sidebar thu nhỏ */
.mini-sidebar .logo-full {
    display: none; /* ẩn logo chính */
}

.mini-sidebar .logo-icon {
    display: block; /* hiện icon nhỏ */
    height: 40px;
    width: auto;
}

/* Bọc logo */
.brand-logo {
    height: 70px; /* chiều cao header */
}

/* Make sidebar menu full height and use flex column */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    height: 100%; /* chiếm toàn bộ chiều cao sidebar */
}

    /* Các ul mặc định chiếm không gian còn lại */
    .sidebar-nav ul#sidebarnav {
        display: flex;
        flex-direction: column;
        flex-grow: 1; /* chiếm hết chỗ trống */
    }

    /* Nhóm item cuối */
    .sidebar-nav .bottom-items {
        margin-top: auto; /* đẩy xuống dưới */
    }

.search-box {
    display: flex; /* Sử dụng flex để sắp xếp biểu tượng và ô nhập liệu */
    align-items: center; /* Căn giữa theo chiều dọc */
    background-color: var(--bg-button-color); /* Màu nền */
    border-radius: 19px; /* Làm tròn góc */
    padding: 5px 10px; /* Padding cho ô tìm kiếm */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Thêm bóng cho ô tìm kiếm */
}

.search-box .form-control::placeholder {
    color: var(--color-text-light);
    opacity: 0.5;
}

.search-icon {
    width: 20px; /* Kích thước biểu tượng tìm kiếm */
    height: 20px; /* Kích thước biểu tượng tìm kiếm */
    margin-right: 10px; /* Khoảng cách giữa biểu tượng và ô nhập liệu */
}

.menu-icon {
    width: 20px;
    height: 20px;
}

.search-box input {
    border: none; /* Bỏ viền cho ô nhập liệu */
    outline: none; /* Bỏ viền khi ô nhập liệu được chọn */
    width: 100%; /* Chiều rộng 100% của ô nhập liệu */
}

.search-box input::placeholder {
    color: #999; /* Màu cho placeholder */
}

.left-sidebar {
    overflow-x: hidden; /* ẩn thanh trượt ngang */
}

.left-sidebar > div {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-toggle-icon {
    position: absolute;
    bottom: 20px; /* khoảng cách đáy */
    right: 20px; /* khoảng cách phải */
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 1000;
}

.sidebar-toggle-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.left-sidebar.collapsed .sidebar-toggle-icon {
    bottom: 20px; /* vẫn cách đáy 20px */
    right: 50%; /* nằm giữa trục ngang */
    transform: translateX(50%); /* dịch sang phải để chính giữa */
}

.fixed-profile {
    flex-shrink: 0;
    margin: 0 0 0 0 !important;
}

.sidebar-bottom {
    margin-top: 10px; /* khoảng cách trên nếu cần */
    padding-bottom: 60px; /* khoảng cách từ đáy, điều chỉnh theo icon */
}

.simplebar-content-wrapper {
    overflow-x: hidden !important;
}

.simplebar-track.simplebar-horizontal {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}

.app-header {
    margin-left: 5px;
    border-radius: 24px;
    border: 1px solid var(--sidebar-border);
    background-color: var(--light-mode-surface);
    padding: 0 2rem;
}

#main-wrapper[data-layout=vertical] .app-header.fixed-header .navbar {
    background: var(--light-mode-surface);
    padding: 0 0;
    box-shadow: none;
    margin-top: 0px;
}

/* Custom Select Wrapper - Vùng chứa tổng thể */
.custom-select-wrapper {
    position: relative; /* Quan trọng để custom-dropdown-menu absolute theo nó */
    height: 48px;
    width: 250px;
    background-color: var(--primary-light); /* Màu nền mặc định khi đóng */
    border-radius: 8px;
    padding: 8px 15px; /* Padding mặc định */
    overflow: visible; /* Đảm bảo dropdown menu không bị cắt */
    z-index: 999;
    cursor: pointer;
    transition: all 0.2s ease-in-out; /* Thêm transition cho background và box-shadow */
    border: 1px solid transparent; /* Border trong suốt ban đầu */
}

/* Trạng thái khi dropdown mở */
.custom-select-wrapper.is-open {
    background-color: var(--primary-light); /* Màu nền trắng khi mở */
    border-color: var(--sidebar-border); /* Border màu như hình 1 khi mở */
    border-bottom-left-radius: 0; /* Loại bỏ bo tròn dưới khi mở */
    border-bottom-right-radius: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); /* Thêm bóng khi mở */
}

    .custom-select-wrapper.is-normal.is-open {
        background-color: var(--primary-light); /* giữ nguyên nền */
        padding: 8px 15px; /* KHÔI PHỤC padding bị mất */
        height: 48px; /* GIỮ nguyên chiều cao wrapper */
    }

/* Phần hiển thị thương hiệu đang chọn */
.selected-brand-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0; /* Loại bỏ padding ở đây nếu đã có ở wrapper */
    height: 32px; /* Giữ chiều cao cố định */
}

/* Các phần tử bên trong selected-brand-display khi dropdown mở */
.custom-select-wrapper.is-open .selected-brand-display {
    /* Có thể thay đổi màu chữ hoặc icon nếu muốn, hiện tại không cần thay đổi display */
    /* background-color: var(--light-mode-surface); */
    /* border-bottom: 1px solid #eee; */ /* Thêm đường kẻ dưới nếu muốn phân tách */
}

.selected-brand-name {
    flex-grow: 1;
    margin-left: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

/* Custom Select Logo */
.custom-select-logo {
    width: 56px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-logo-brand);
    border-radius: 8px;
    padding: 0;
}

.custom-select-wrapper.is-add-brand.is-open .custom-select-logo {
    display: none;
}

.custom-select-wrapper.is-normal .custom-select-logo {
    background-color: var(--bg-logo-brand);
}

.custom-select-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.custom-arrow {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.custom-arrow.open {
    transform: rotate(180deg);
}

/* Mũi tên xoay khi dropdown mở */
.custom-select-wrapper.is-open .custom-arrow {
    transform: rotate(180deg);
}


/* Dropdown Menu - Phần chính của dropdown tùy chỉnh */
.custom-dropdown-menu {
    position: absolute; /* Quan trọng: absolute so với wrapper */
    top: 100%; /* Đặt ngay dưới selected-brand-display (nằm trong wrapper) */
    left: -1px; /* Điều chỉnh để nó khớp với border của wrapper, -1px bù cho border trái */
    width: calc(100% + 2px); /* Chiếm toàn bộ chiều rộng của wrapper + bù border */
    background-color: var(--primary-light); /* Nền trắng cho dropdown */
    border-bottom-left-radius: 8px; /* Bo tròn dưới */
    border-bottom-right-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); /* Bóng đổ */
    padding: 10px 0; /* Padding cho nội dung dropdown */
    z-index: 1100;
    display: none; /* Mặc định ẩn, sẽ hiển thị bằng JS */
    border: 1px solid var(--sidebar-border); /* Border cho dropdown menu */
    border-top: none; /* Không có border trên vì nó nối với wrapper */
}

.custom-select-wrapper.is-open .custom-dropdown-menu {
    display: block; /* Hiển thị khi wrapper có class 'is-open' */
}

/* Styling cho "Add your brand" header */
.add-brand-header {
    background-color: #f0e6fa;
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 8px;
    margin: 0 10px 10px 10px;
    padding: 8px 15px;
    justify-content: space-between;
}

.add-brand-header .add-icon {
    font-size: 20px;
    margin-right: 10px;
    color: var(--primary-color);
}
/* Mũi tên trong add-brand-header không cần xoay */
.add-brand-header .custom-arrow.down-arrow {
    transform: rotate(0deg);
}


/* Styling cho Search input */
.search-input-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--light-mode-surface);
    border-radius: 19px;
    margin: 0 15px 10px 15px;
    padding: 5px 10px;
    border: 1px solid #eee;
}

.search-icon {
    margin-right: 8px;
    color: #999;    
}

.brand-search-input {
    border: none;
    outline: none;
    flex-grow: 1;
    padding: 5px 0;
    background-color: transparent;
    font-size: 14px;
}

/* Danh sách các tùy chọn thương hiệu */
.brand-options-list {
    max-height: 200px;
    overflow-y: auto;
}

.brand-option {
    display: flex;
    align-items: center;
    background-color: var(--secondary-light);
    border-radius: 8px;
    padding: 5px 10px; /* Giữ nguyên 10px padding ngang */
    margin: 0 15px 10px 15px; /* Giữ nguyên margin ngang */
    width: auto;
    box-sizing: border-box; /* Quan trọng để padding/border không làm tăng thêm chiều rộng */
    cursor: pointer;
}

.brand-option span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.brand-option.active {
    background-color: var(--secondary-light); /* giữ màu nền tím nhạt khi active */
    font-weight: 600;
    color: var(--primary-color);
}

/*.brand-option:hover {
    background-color: #f2f2f2; 
}*/

.brand-logo-small {
    width: 56px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-logo-brand);
    border-radius: 6px;
    margin-right: 10px;
}

.brand-logo-small img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Styling cho "Add more brands" footer */
/* Nút Add more brands - thống nhất style với .brand-option */
.add-more-brands-footer {
    display: flex;
    align-items: center;
    background-color: var(--light-mode-surface);
    border-radius: 8px;
    padding: 5px 10px;
    margin: 0 15px 10px 15px;
    width: auto;
    box-sizing: border-box;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.2s ease-in-out;
}

/* Hover effect giống brand-option */
.add-more-brands-footer:hover {
    background-color: var(--light-mode-surface);
}

/* Icon + căn giữa giống brand-option */
.add-more-brands-footer .add-icon {
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
    background-color: var(--light-mode-surface);
    margin-right: 10px;
}

.add-more-brands-footer .add-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.custom-header-nav {
    display: flex;
    align-items: center; /* Căn giữa các mục theo chiều dọc */
    list-style: none; /* Bỏ dấu chấm của li */
    padding: 0;
    margin: 0;
    background-color: var(--light-mode-surface); /* Nền trắng cho toàn bộ thanh header */
    height: 60px; /* Chiều cao của toàn bộ thanh header */
    /* Thêm padding tổng thể để các phần tử không dính vào viền (nếu bạn muốn) */
    /* padding: 0 15px; */
}

.custom-header-nav .nav-item {
    margin: 0 8px; /* Giữ khoảng cách giữa các nav-item là 8px hoặc điều chỉnh nếu cần */
    display: flex; /* Để căn giữa nội dung bên trong item */
    align-items: center;
    height: 100%; /* Đảm bảo item chiếm toàn bộ chiều cao của nav */
}

/* Kiểu cho nút Credits */
.credits-button {
    background-color: var(--bg-badge-color); /* Màu nền nhẹ hơn */
    border: none;
    border-radius: 8px; /* Bo tròn góc */
    padding: 8px 15px; /* Khoảng cách bên trong */
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-light); /* Màu chữ */
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    height: 48px; /* Giữ chiều cao 48px */
}

.credits-button:hover {
    background-color: #e6e6e6;
}

/* Kiểu chung cho các nút icon (loa, chuông) */
.custom-icon-button {
    background-color: var(--bg-badge-color); /* Màu nền luôn hiển thị */
    border: none;
    border-radius: 24px; /* Đã đổi thành 24px */
    width: 48px; /* Đã đổi thành 48px */
    height: 48px; /* Đã đổi thành 48px */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-icon-button:hover {
    background-color: #e6e6ee;
    /* box-shadow: 0 2px 5px rgba(0,0,0,0.1); */ /* Không thay đổi box-shadow */
}

.custom-icon-button img {
    width: 24px; /* Kích thước icon bên trong */
    height: 24px;
    object-fit: contain;
    }

/* Kiểu riêng cho nút cờ */
.flag-button {
    border-radius: 8px; /* Bo tròn góc nhẹ cho cờ */
    background-color: transparent; /* Đảm bảo nền trong suốt */
    width: auto; /* Để cờ có chiều rộng tự động theo nội dung */
    height: auto; /* Để cờ có chiều cao tự động theo nội dung */
    padding: 0; /* Loại bỏ padding */
}

.flag-button img {
    border-radius: 4px; /* Bo tròn nhẹ cho hình ảnh cờ */
    width: 30px; /* Kích thước cờ */
    height: 20px;
}

/* Kiểu cho phần Profile User */
.profile-link {
    text-decoration: none;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    /* Điều chỉnh padding để cân bằng khoảng trống xung quanh avatar và tên */
    padding: 0 12px; /* **Đã điều chỉnh padding** */
    height: 100%;
}

.user-info-wrapper {
    display: flex;
    align-items: center;
    /* Điều chỉnh margin-right nếu bạn có mũi tên dropdown ngay sau user-name */
    /* margin-right: 5px; */
}

.user-avatar {
    width: 48px; /* Kích thước avatar */
    height: 48px;
    border-radius: 50%; /* Hình tròn cho avatar */
    overflow: hidden; /* Cắt ảnh nếu tràn */
    margin-right: 12px; /* **Đã tăng khoảng cách giữa avatar và tên** */
    display: flex;
    justify-content: center;
    align-items: center;
    /* background-color: #E0F2F7; */ /* Không thay đổi màu nền */
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Đảm bảo ảnh lấp đầy avatar và không bị méo */
}

.user-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-light);
    /* Giữ nguyên hoặc điều chỉnh margin-right nếu bạn có mũi tên dropdown */
    margin-right: 5px; /* Giữ 5px hoặc điều chỉnh */
}

/* Điều chỉnh dropdown menu nếu bạn giữ lại */
.dropdown-menu {
    border-radius: 8px;
    /* box-shadow: 0 4px 10px rgba(0,0,0,0.1); */ /* Không thay đổi box-shadow */
}

.dropdown-item {
    font-size: 14px;
    padding: 8px 15px;
}

.container-fluid {
    min-height: 0; 
    padding-left: 5px !important;
    padding-right: 0px !important;
    padding-bottom: 0px !important;
}

[data-header-position=fixed] .body-wrapper > .container-fluid {
    padding-top: calc(var(--header-height) + var(--header-spacing)) !important;
}

.custom-card {
    background-color: var(--light-mode-surface);
    border-radius: 24px;
    border: 1px solid var(--sidebar-border);
    overflow: hidden;
}

.content-body {
    margin: 2rem;
}

.custom-footer {
    border-top: none;
    background-color: var(--light-mode-bg) !important;
}

.copyright {
    display: flex;
    align-items: center; /* căn giữa theo chiều dọc */
    justify-content: center; /* căn giữa theo chiều ngang */
    white-space: nowrap;
    padding-left: 10px;
}

.copyright-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    margin-right: 4px; /* khoảng cách nhỏ giữa icon và chữ */
    margin-left: 4px;
}

.copyright-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    background: var(--linear-color);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline; /* đổi từ inline-block → inline để liền nhau */
}

/* Custom CSS cho Dropdown Menu */
.profile-dropdown {
    width: 300px; /* Điều chỉnh chiều rộng của dropdown nếu cần */
    max-height: 90vh; /* Giới hạn chiều cao */
    overflow-y: auto; /* Thêm scroll nếu nội dung quá dài */
}

.user-header {
    background-color: #f8f9fa; /* Màu nền nhẹ cho phần header */
    border-bottom: 1px solid #eee;
}

.user-header img {
    border: 2px solid #fff; /* Border trắng quanh avatar */
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.menu-item {
    display: flex; /* Đảm bảo display flex để căn chỉnh */
    align-items: center;
    padding: 0.8rem 1rem; /* Padding bên trong các ô */
    margin-bottom: 0.75rem; /* Khoảng cách giữa các ô */
    border: 1px solid var(--border-color-menu-item); /* Border của ô */
    border-radius: 8px; /* Bo góc của ô */
    background-color: var(--bg-badge-userinfo-color); /* Nền trắng cho ô */
    text-decoration: none;
    color: var(--color-text-light); /* Màu chữ mặc định */
    transition: all 0.2s ease-in-out; /* Hiệu ứng chuyển động khi hover */
}

.menu-item:hover {
    border-color: #007bff; /* Màu border khi hover */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Bóng đổ mạnh hơn khi hover */
    transform: translateY(-2px); /* Hiệu ứng nhấc nhẹ lên khi hover */
    color: #007bff; /* Màu chữ khi hover */
}

.menu-item .menu-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-right: 12px;
}


.credit-item {
    position: relative;
    border-radius: 8px;
    background: var(--light-mode-surface);
    color: var(--color-text-light);
    padding: 0.8rem 1rem;
    margin-bottom: 0.75rem;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    z-index: 0;
}

.credit-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 1px; /* độ dày viền */
    background: var(--linear-color);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.credit-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-right: 12px;
}

.credit-item:hover {
    background-color: var(--light-mode-surface);
    border-color: #c2185b;
    color: #c2185b;
}

.credit-item .text-danger, 
.credit-item .number-credit {
    background: var(--linear-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Điều chỉnh riêng cho switch Light Mode */
.menu-item .form-check-input {
    cursor: pointer;
    flex-shrink: 0; /* Đảm bảo switch không bị co lại */
}

@media (min-width: 768px) {
    .navbar-nav .dropdown-menu.content-dd {
        width: 300px;
    }
}

/* Custom màu cho dropdown menu */
.dropdown-menu.content-dd {
    background-color: var(--bg-badge-userinfo-color); /* Màu nền */
    border-radius: 12px; /* Bo góc */
    padding: 0.5rem 0; /* Padding bên trong */
    min-width: 200px; /* Chiều rộng tối thiểu */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* Bóng đổ */
    color: var(--color-text-light); /* Màu chữ */
}

/* Các item bên trong dropdown */
.dropdown-menu.content-dd .dropdown-item {
    color: var(--color-text-light);
    padding: 0.5rem 1rem;
    transition: all 0.2s ease-in-out;
}

.dropdown-menu.content-dd .dropdown-item:hover {
    background-color: var(--sidebar-item-hover-bg); /* Màu hover */
    color: var(--sidebar-item-hover-color); /* Màu chữ hover */
}

.dropdown-menu .dropdown-item p {
    color: var(--color-text-light);
    transition: color 0.2s ease;
}

/* Custom riêng cho Light Mode menu item */
.light-mode-menu-item {
    display: flex; /* Đảm bảo display flex để căn chỉnh */
    align-items: center;
    padding: 0.8rem 1rem; /* Padding bên trong các ô */
    margin-bottom: 0.75rem; /* Khoảng cách giữa các ô */
    border: 1px solid var(--border-color-menu-item); /* Border của ô */
    border-radius: 8px; /* Bo góc của ô */
    background-color: var(--bg-badge-userinfo-color); /* Nền trắng cho ô */
    text-decoration: none;
    color: var(--color-text-light); /* Màu chữ mặc định */
    transition: all 0.2s ease-in-out; /* Hiệu ứng chuyển động khi hover */
}

.light-mode-menu-item .menu-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-right: 12px;
}

.light-mode-menu-item .form-check-input {
    /* Reset mọi style mặc định của Bootstrap */
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    padding: 0;
    border: 1px solid #EEE3F8;
    background-image: none !important;
    --bs-form-switch-bg: none !important;
    position: relative;
    width: 48px;
    height: 24px;
    background-color: #EEE3F8; /* nền switch tắt */
    border-radius: 24px;
    outline: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Thumb */
.light-mode-menu-item .form-check-input::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 2px;
    width: 21px;
    height: 21px;
    background-color: #3E0460; /* nút tắt */
    border-radius: 50%;
    transition: transform 0.3s, background-color 0.3s;
}

.light-mode-menu-item .form-check-input:checked::before {
    transform: translateX(22px);
    background-color: #EEE3F8; /* nút bật */
}

.light-mode-menu-item .form-check-input:checked {
    background-color: #FFFFFF; /* nền switch bật */
}

/* ========================================================================
    Adtifyy Menu
 ========================================================================== */

.slide-nav-section
{
    font-size: 0.7rem !important;
}

.icon-box-title {
    width: 72px;
    height: 72px;
    background-color: transparent;
    border: 1px solid #ccc;
    border-radius: 20px;
    color: white;
    font-size: 28px;
    flex-shrink: 0;
}

.adtify-nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-start;
}

.menu-card {
    background-color: var(--bg-button-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    padding: 20px;
}

.menu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Header */
.menu-card-header {
    display: block;
    height: 180px;
    overflow: hidden;
    border-radius: 10px;
}

.menu-card-header img:first-child {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    transition: filter 0.3s ease;
}

/* Khi hover card -> ảnh sáng hơn nhẹ */
.menu-card:hover .menu-card-header img:first-child {
    filter: brightness(1.1);
}

.menu-card-title-link {
    color: inherit;
    text-decoration: none;
}

.menu-card-title-link:hover {
    text-decoration: underline;
}

/* Heart icon */
.heart-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background-color: transparent;
    padding: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.heart-icon:hover {
    transform: scale(1.1);
    content: url("../icons/heart.png");
}

/*.heart-icon.active {
    content: url("../icons/heart-purple.png") !important;
}*/

/* Body */
.menu-card-body {
    padding: 16px 0 0;
    position: relative;
}

.menu-card-body h4 {
    font-weight: 600;
    margin-bottom: 8px;
}

.menu-card-body p {
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Explore button */
.explore-btn {
    display: inline-block;
    font-weight: 600;
    color: var(--primary-color);
    background-color: var(--primary-light);
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.explore-btn:hover {
    background-color: #e5d4ff;
}

/* Footer: chứa (1.1K users...) và Explore now */
.menu-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

/* Khi không có <p> bên trái, nút vẫn ở bên phải */
.menu-card-footer:empty,
.menu-card-footer:not(:has(p)) {
    justify-content: flex-end;
}

/* ========================================================================
    text custom
 ========================================================================== */
.text-adtify-primary {
    color: var(--primary-color);
}

/* ========================================================================
    background color custom
 ========================================================================== */

.bg-adtify-primary-light
{
    background-color: var(--primary-light);
}

/* ========================================================================
     Button custom
 ========================================================================== */

/*button-adtify-primary*/

.button-adtify-primary {
    color: var(--color-text-light);
    background-color: var(--secondary-light);
    transition: all 0.3s ease;
}

    .button-adtify-primary:hover {
        cursor: pointer;
        color: var(--color-text-white) !important;
        background-color: var(--primary-color) !important;
        border-color: transparent !important;
    }

    .button-adtify-primary.active {
        cursor: pointer;
        color: var(--color-text-white) !important;
        background-color: var(--primary-color) !important;
        border-color: transparent !important;
    }

.button-adtify-primary.active img {
    transition: filter 0.3s ease;
    filter: brightness(0) invert(1);
}

.button-adtify-primary img {
    transition: filter 0.3s ease;
}

.button-adtify-primary:hover img {
    filter: brightness(0) invert(1); /* đổi màu trắng */
}

.button-adtify-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/*button-adtify-primary-light*/

.button-adtify-primary-light {
    color: var(--color-text-white);
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Hover & Active giống Primary */
.button-adtify-primary-light:hover,
.button-adtify-primary-light.active {
    color: var(--color-text-light);
    background-color: var(--secondary-light);
}

.button-adtify-primary-light:hover img,
.button-adtify-primary-light.active img {
    filter: brightness(0) invert(1);
}

/* ========================================================================
    textarea custom
 ========================================================================== */

.ai-textarea {
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
}

.ai-textarea:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    outline: none;
}

.ai-textarea::placeholder {
    color: #adb5bd;
}

.ai-textaera-mode {
    background-color: var(--ai-textarea-mode) !important;
}

.input-custom
{
    background-color: var(--light-mode-bg) !important;
}


/* ========================================================================
    table custom
 ========================================================================== */
.table-card-wrapper {
    background: transparent !important;
    box-shadow: none !important;
}

.table-container {
    border-radius: 12px;
    overflow: hidden; /* giúp bo góc thead */
    background: white;
    border: 1px solid #eee;
}

/* Table custom */
.custom-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-table thead th {
    background-color: #f3eaff !important; /* tím nhạt */
}

.custom-table th {
    padding: 16px 20px;
    font-size: 15px;
    color: #333;
    border: none !important;
}

.custom-table td {
    padding: 16px 20px;
    font-size: 15px;
    color: #333;
    border-bottom: 1px solid #f0f0f2;
}

.custom-table tbody tr:last-child td {
    border-bottom: none;
}

.table-container table.custom-table td:first-child {
    padding-left: 20px !important;
}

.table-container table.custom-table th:first-child {
    padding-left: 20px !important;
}

/* ========================================================================
    Feedback Modal Backdrop Custom
 ========================================================================== */
.modal-backdrop.feedback-modal-backdrop {
    background-color: rgba(238, 227, 248, 0.8) !important;
    opacity: 1 !important;
}

/* ========================================================================
    Feedback Modal Custom Styles
 ========================================================================== */
#feedbackModal .modal-dialog {
    max-width: 368px;
    width: 368px;
    margin: auto;
}

.feedback-modal-content {
    border-radius: 8px;
    border: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

    .feedback-modal-content.fixed-height {
        height: 488px;
    }

.feedback-state {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feedback-state-success {
    position: relative;
    min-height: 100%;
    padding: 0 32px 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feedback-success-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feedback-modal-header {
    border-bottom: none;
    padding: 24px 24px 0px;
    position: relative;
    flex-shrink: 0;
}

.feedback-header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feedback-icon-wrapper {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feedback-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #8105BD;
    margin: 0;
}

.feedback-modal-header .btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
}

.feedback-modal-header .btn-close:hover {
    opacity: 1;
}

.feedback-modal-body {
    padding: 0 24px 0px;
    /*overflow-y: auto;*/
    flex: 1;
    min-height: 0;
}

/* Rating Section */
.feedback-rating-section {
    padding-top: 8px;
    padding-bottom: 14px;
}

.rating-emojis {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.rating-emoji {
    background: none;
    border: 2px solid transparent;
    border-radius: 50%;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rating-emoji:hover {
    transform: scale(1.1);
    border-color: #EEE3F8;
    background-color: #F9F5FF;
}

.rating-emoji.active {
    border-color: #8105BD;
    background-color: #EEE3F8;
    transform: scale(1.15);
}

.emoji-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Form Labels */
.feedback-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Select Dropdown */
.feedback-select-wrapper {
    position: relative;
}

.feedback-select-container {
    position: relative;
    border: 1px solid #F72585;
    border-radius: 8px;
    background-color: #fff;
    padding: 8px 0 0;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    overflow: visible;
}

.feedback-select-container.open {
    border-bottom-color: #F72585;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.feedback-select-container.open .feedback-select-display {
    border-bottom-color: #F72585;
}

.feedback-select-label {
    position: absolute;
    top: -6px;
    left: 12px;
    padding: 0 6px;
    background-color: #fff;
    font-weight: 400;
    color: #F72585;
    font-size: 8px;
    line-height: 1.2;
}

.feedback-select {
    border: none;
    border-radius: 0 0 8px 8px;
    padding: 4px 48px 8px 8px;
    font-size: 14px;
    color: #383838;
    background-color: transparent;
    display: flex;
    align-items: center;
    min-height: 38px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    background-image: none;
    cursor: pointer;
}

.feedback-select-display {
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
}

.feedback-select-value {
    font-size: 12px;
    flex: 1;
    font-weight: bold;
    color: #000000;
}

.feedback-select-value.is-placeholder {
    font-size: 8px;
    color: #979797;
    font-weight: 400;
}

.feedback-select-display:focus {
    outline: none;
}

.feedback-select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 5;
}

.feedback-select-container.open .dropdown-arrow-icon {
    transform: rotate(180deg);
}

.dropdown-arrow-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    transition: transform 0.2s ease;
    transform: rotate(0deg);
}

.feedback-options {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    border: 1px solid #F72585;
    border-top: none;
    border-radius: 0 0 12px 12px;
    background-color: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    position: absolute;
    left: -1px;
    width: calc(100% + 2px);
    z-index: 10;
    display: none;
    max-height: 220px;
    overflow-y: auto;
}

.feedback-select-container.open .feedback-options {
    display: block;
}

.feedback-option {
    padding: 10px 16px;
    font-size: 12px;
    color: #383838;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .feedback-option:hover {
        background-color: #F5F5FA;
        border-radius: 8px;
    }

    .feedback-option.active {
        background-color: #F5F5FA;
        border-radius: 8px;
    }

/* Textarea */
.feedback-textarea-wrapper {
    position: relative;
}

.feedback-textarea-label {
    position: absolute;
    top: -4px;
    left: 12px;
    padding: 0 6px;
    background-color: #fff;
    font-weight: 400;
    color: #F72585;
    font-size: 8px;
    line-height: 1.2;
    z-index: 1;
}

.feedback-textarea {
    border: 1px solid #F72585;
    border-radius: 8px;
    padding: 8px 8px;
    font-size: 10px;
    color: #333;
    resize: vertical;
    min-height: 120px;
    height: 80px;
    transition: border-color 0.2s ease;
}

    .feedback-textarea:focus {
        border-color: #F72585;
        outline: none;
        box-shadow: 0 0 0 3px rgba(129, 5, 189, 0.1);
    }

.feedback-textarea::placeholder {
    color: #999;
}

.character-counter {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 8px;
    color: #383838;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 4px;
}

.feedback-checkboxes .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 0;
}

.feedback-checkboxes .form-check-input {
    width: 16px;
    height: 16px;
    margin-top: 0;
    margin-left: 0;
    border: 0.5px solid #BE5002;
    border-radius: 4px;
    cursor: pointer;
    background-color: transparent;
    background-image: none;
    position: relative;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.feedback-checkboxes .form-check-input::after {
    content: "";
    position: absolute;
    inset: 50%;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    background-color: transparent;
    transform: translate(-50%, -50%);
    transition: background-color 0.2s ease;
}

.feedback-checkboxes .form-check-input:checked::after {
    background-color: #FFEAD6;
}

.feedback-checkboxes .form-check-input:focus {
    box-shadow: 0 0 0 2px rgba(190, 80, 2, 0.2);
}

.feedback-checkboxes .form-check-label {
    font-size: 8px;
    color: #333;
    cursor: pointer;
    line-height: 1.5;
}

/* Footer */
.feedback-modal-footer {
    border-top: none;
    padding: 24px 24px 24px;
    justify-content: flex-end;
    flex-shrink: 0;
}
.feedback-modal-footer > * {
    margin: 0;
}

.feedback-submit-btn {
    background-color: #EEE3F8;
    border-color: transparent;
    color: #8105BD;
    font-weight: bold;
    font-size: 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    padding: 8px 8px;
}

    .feedback-submit-btn:hover {
        background-color: #8105BD;
        border-color: #8105BD;
        transform: translateY(-1px);
    }

.feedback-submit-btn:active {
    transform: translateY(0);
}

/* Success Message */
#feedbackResult {
    border-radius: 8px;
    border: none;
    background-color: #d4edda;
    color: #155724;
}

/* Feedback Success Modal */
.feedback-success-close {
    position: absolute;
    top: 10px;
    right: 10px;
}

.feedback-success-body {
    padding: 32px 16px 24px;
}

.feedback-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
}

.feedback-success-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feedback-success-title {
    font-weight: 600;
    color: #8105BD;
    margin-bottom: 8px;
    font-size: 20px;
}

.feedback-success-text {
    color: #011212;
    font-size:12px;
    margin-bottom: 0;
    z-index: 1;
    position: relative;
}

.feedback-success-illustration {
    width: 100%;
    margin-top: 16px;
    position: absolute;
    bottom: 0;
    left: 0;
}

.feedback-success-illustration img {
    padding: 3px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.feedback-validation {
    font-size: 10px; /* hoặc 12px, 14px tuỳ ý */
    line-height: 1.2;
}

/* Responsive */
@media (max-width: 576px) {
    .feedback-modal-content {
        margin: 16px;
    }
    
    .rating-emojis {
        gap: 12px;
    }
    
    .rating-emoji {
        width: 48px;
        height: 48px;
    }
    
    .feedback-modal-header,
    .feedback-modal-body,
    .feedback-modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.custom-btn-close {
    width: 20px;
    height: 20px;
    background-image: url('/theme/images/icon/close-feedback.svg');
    background-size: cover;
    background-position: center;
    opacity: 1;
    border: none;
    box-shadow: none;
    padding: 0;
    background-color: transparent;
}

    .custom-btn-close:hover {
        opacity: 0.8;
    }

.modal-header .custom-btn-close {
    padding: 0;
    margin: 0;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin: 0;
    flex-shrink: 0;
}

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #F5F5FA;
    transition: 0.3s;
    border-radius: 24px;
    border: 1px solid transparent;
}

    .toggle-slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 2.5px;
        background-color: #FEE3EE;
        transition: 0.3s;
        border-radius: 50%;
    }

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}
}
}

/*Giành riêng cho pagani*/
.page-item .page-link {
    border-radius: 50% !important; /* Bo tròn hoàn toàn */
    width: 40px;                   /* Cần có kích thước cố định */
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

/* Đảm bảo các nút cách đều nhau, 
  vì "me-3" của bạn có thể không hoạt động như mong đợi 
*/
.page-item.page-num:not(:last-child) {
     margin-right: 0.5rem; 
     margin-left: 0.5rem; 
}
.page-link{
    background-color: #dedde0;
    border-radius: 20px;
}

/*.page-link.page-previous{
    background-color: gray;
}*/

.page-item.page-link.page-num{
    border-radius: 1.2rem !important;
}

.page-link.active, .active > .page-link{
    background-color: #8105BD;
}
.page-link.active, .active > .page-link{
    border-color: transparent !important;
}

.page-link:hover{
    background-color:#dedde0;
}
.page-item:first-child .page-link{
    border-radius: 2rem;
}
.page-item:last-child .page-link{
    border-radius: 2rem;
}