/* ============================================================
   DARK MODE BASE
============================================================ */
body.dark-mode {
    background-color: #121212 !important;
    color: #e5e5e5 !important;
}

/* Hide Scrollbars */
body.dark-mode ::-webkit-scrollbar {
    display: none;
}
body.dark-mode {
    -ms-overflow-style: none;  /* IE & Edge */
    scrollbar-width: none;     /* Firefox */
}

/* ============================================================
   SIDEBAR STYLES
============================================================ */
body.dark-mode #accordionSidebar {
    background-color: #1e1e1e !important;
    border-right: 1px solid #2a2a2a;
}

body.dark-mode .bg-custom-sidebar {
    background-color: #1e1e1e !important;
}

body.dark-mode .bg-custom-sidebar .sidebar-brand-text,
body.dark-mode .bg-custom-sidebar .nav-link,
body.dark-mode .bg-custom-sidebar .sidebar-heading {
    color: #c7c7c7 !important;
}

body.dark-mode .bg-custom-sidebar .nav-link i {
    color: #bbb !important;
}

body.dark-mode .bg-custom-sidebar .nav-link:hover {
    background-color: #2e2e2e !important;
    color: #ffd9b3 !important;
}

body.dark-mode .bg-custom-sidebar .nav-link:hover i {
    color: #ffd9b3 !important;
}

body.dark-mode .bg-custom-sidebar .nav-item.active .nav-link {
    background-color: #3a3a3a !important;
    color: #ffbf80 !important;
}

body.dark-mode .bg-custom-sidebar .nav-item.active .nav-link i {
    color: #ffbf80 !important;
}

body.dark-mode .sidebar-divider {
    border-top: 2px solid #dee2e6 !important;
}

/* ============================================================
   TOPBAR / NAVBAR STYLES
============================================================ */
body.dark-mode .bg-custom-navbar {
    background-color: #1a1a1a !important;
    border-bottom: 1px solid #333;
}

body.dark-mode .icon-bars {
    color: #ffbf80;
}

/* ============================================================
   SUBMENUS / COLLAPSE ITEMS
============================================================ */
body.dark-mode .collapse-inner {
    background: #222 !important;
    border: 2px solid #333 !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6) !important;
}

body.dark-mode .collapse-item {
    color: #dcdcdc !important;
}

body.dark-mode .collapse-item:hover,
body.dark-mode .sidebar.toggled .collapse-item:hover {
    background-color: #333 !important;
    color: #ffdfb8 !important;
}

body.dark-mode .collapse-item.active {
    background-color: #5a3a22 !important;
    color: #fff !important;
}

/* ============================================================
   MAIN CONTENT AREA
============================================================ */
body.dark-mode #content {
    background-color: #555555 !important;
    background-image: none !important;
}

body.dark-mode .page-heading {
    color: #ffdfb8 !important;
    font-size: 1.5rem;
}

/* ============================================================
   MENU CARDS
============================================================ */
body.dark-mode .menu-card {
    background: #1c1c1c !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4) !important;
}

body.dark-mode .menu-card:hover {
    box-shadow: 0 25px 50px rgba(0,0,0,0.6) !important;
}

body.dark-mode .card-title,
body.dark-mode .description-title {
    color: #ffbf80 !important;
}

body.dark-mode .description-overlay {
    background: linear-gradient(to top, rgba(20, 20, 20, 0.95) 70%, transparent) !important;
}

body.dark-mode .description-text {
    color: #d0b49c !important;
}

body.dark-mode .floating-badge {
    background: #2a2a2a;
    color: #ffbf80;
    box-shadow: 0 3px 12px rgba(0,0,0,0.6);
}

/* ============================================================
   BUTTONS
============================================================ */
/* Search button */
body.dark-mode .btn-search {
    background-color: #DCC5A0;
    color: #000000;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

body.dark-mode .btn-search:hover {
    color: #ffffff;
    background-color: #70391B;
}

/* XS Search button & Notification Icon */
body.dark-mode .btn-search-xs,
body.dark-mode .notification-icon {
    color: #ffffff;
}

body.dark-mode .btn-search-xs:hover,
body.dark-mode .notification-icon:hover {
    color: #DCC5A0;
}

/* Best sellers button */
body.dark-mode .btn-bestsellers {
    background-color: #DCC5A0;
    color: #000000;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

body.dark-mode .btn-bestsellers:hover {
    color: #ffffff;
    background-color: #70391B;
}

/* ============================================================
   LOGOUT MODAL
============================================================ */
body.dark-mode .modal-content {
    background-color: #1e1e1e !important;
    color: #e5e5e5 !important;
    border: 1px solid #333 !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.7);
}

body.dark-mode .modal-header {
    border-bottom: 1px solid #333 !important;
}

body.dark-mode .modal-title {
    color: #ffbf80 !important;
}

body.dark-mode .modal-header .close span {
    color: #ffbf80 !important;
}

body.dark-mode .modal-header .close:hover span {
    color: #ffdfb8 !important;
}

body.dark-mode .modal-body {
    color: #dcdcdc !important;
}

body.dark-mode .modal-footer {
    border-top: 1px solid #333 !important;
}

body.dark-mode .btn-logout-cancel {
    background-color: #555 !important;
    color: #ffffff !important;
}

body.dark-mode .btn-logout-cancel:hover {
    background-color: #666 !important;
}

body.dark-mode .btn-logout-confirm {
    background-color: #ffbf80 !important;
    color: #1c1c1c !important;
}

body.dark-mode .btn-logout-confirm:hover {
    background-color: #d29c63 !important;
    color: #000 !important;
}

/* ============================================================
   DROPDOWNS (NOTIFICATIONS & USER MENU)
============================================================ */
body.dark-mode .dropdown-menu,
body.dark-mode .notification-menu,
body.dark-mode .user-menu {
    background-color: #1e1e1e !important;
    border: 1px solid #333 !important;
    color: #e6e6e6 !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6) !important;
}

body.dark-mode .dropdown-header {
    color: #ffdfb8 !important;
    font-weight: 700;
}

body.dark-mode .dropdown-item {
    color: #dcdcdc !important;
    background: transparent !important;
}

body.dark-mode .dropdown-item:hover,
body.dark-mode .dropdown-item:focus {
    background-color: #2f2f2f !important;
    color: #ffdfb8 !important;
}

body.dark-mode .dropdown-divider {
    border-top: 3px solid #333 !important;
}

body.dark-mode .icon-circle {
    background-color: #2a2a2a !important;
    color: #ffd9b3 !important;
}

body.dark-mode .page-heading-color,
body.dark-mode .dropdown-text-color {
    color: #9a9a9a !important;
}

body.dark-mode .dropdown-toggle::after {
    border-top-color: #ffbf80 !important;
}

/* Scrollbars inside dropdowns */
body.dark-mode .notification-menu::-webkit-scrollbar,
body.dark-mode .dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

body.dark-mode .notification-menu::-webkit-scrollbar-thumb,
body.dark-mode .dropdown-menu::-webkit-scrollbar-thumb {
    background: #333;
}

/* ============================================================
   SCROLL TO TOP BUTTON
============================================================ */
body.dark-mode .scroll-to-top {
    background: rgba(255, 191, 128, 0.85) !important;
    color: #1c1c1c !important;
}

body.dark-mode .scroll-to-top:hover {
    background: rgba(255, 191, 128, 1) !important;
    color: #000;
}