﻿/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 275px; /* Expanded slightly for increased font hierarchy */
    color: #FFFFFF;
    padding: 0;
    overflow-y: auto;
    z-index: 1000;
    border-right: 1px solid #27272A;
    background: radial-gradient( circle at 50% 100%, color-mix( in srgb, var(--theme-primary) 12%, transparent ), transparent 38% ), linear-gradient( to bottom, var(--theme-sidebar-top) 0%, var(--theme-sidebar-middle) 50%, var(--theme-sidebar-bottom) 100% );
}

/* Ensure layout offset matches new sidebar width */
.main-area {
    margin-left: 275px;
}

/* =========================================================
   BRAND
========================================================= */

.sidebar-brand {
    height: 82px;
    display: flex;
    align-items: center;
    padding: 0 22px;
    border-bottom: 1px solid rgba(167, 139, 250, 0.12);
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 14px;
    border-radius: 10px;
    background: #FFFFFF;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25), 0 0 20px rgba(124, 58, 237, 0.08);
}

    .brand-mark img {
        width: 32px;
        height: 32px;
        object-fit: contain;
    }

.brand-text h2 {
    margin: 0;
    color: #FFFFFF;
    font-size: 18px; /* Increased from 15px */
    font-weight: 700;
    letter-spacing: 0.3px;
}

.brand-text span {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px; /* Increased from 9px */
    font-weight: 500;
}

/* =========================================================
   NAVIGATION & SECTION HEADERS
========================================================= */

.sidebar-nav {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 82px);
    padding: 22px 14px;
}

.nav-section {
    margin-bottom: 26px;
}

.nav-section-title {
    display: block;
    margin: 0 10px 10px;
    color: rgba(255, 255, 255, 0.50);
    font-size: 11.5px; /* Increased from 9px */
    font-weight: 700;
    letter-spacing: 1.2px;
}

/* =========================================================
   SIDEBAR LINKS & DROPDOWNS (LARGER FONTS)
========================================================= */

.sidebar-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 4px;
    padding: 0 14px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13.5px; /* Increased from 11px */
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

    .sidebar-link i {
        width: 24px;
        margin-right: 12px;
        color: rgba(255, 255, 255, 0.55);
        font-size: 18px; /* Increased from 16px */
        text-align: center;
        transition: color 0.2s ease, transform 0.2s ease;
    }

.sidebar-dropdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    margin-bottom: 4px;
    padding: 0 14px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13.5px; /* Increased from 11px */
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

    .sidebar-dropdown-toggle i:first-child {
        width: 24px;
        margin-right: 12px;
        color: rgba(255, 255, 255, 0.55);
        font-size: 18px; /* Increased from 16px */
        text-align: center;
    }

    .sidebar-dropdown-toggle .chevron-icon {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.5);
        transition: transform 0.25s ease, color 0.2s ease;
    }

    /* Hover States */
    .sidebar-link:hover,
    .sidebar-dropdown-toggle:hover {
        background: color-mix( in srgb, var(--theme-primary) 14%, transparent );
        color: #FFFFFF;
        transform: translateX(3px);
    }

        .sidebar-link:hover i,
        .sidebar-dropdown-toggle:hover i:first-child {
            color: var(--theme-primary-light);
            transform: scale(1.08);
        }

    /* Active State */
    .sidebar-link.active,
    .sidebar-dropdown-toggle[aria-expanded="true"] {
        background: linear-gradient( 90deg, color-mix( in srgb, var(--theme-primary) 24%, transparent ), color-mix( in srgb, var(--theme-primary) 10%, transparent ) );
        color: #FFFFFF;
        font-weight: 600;
        box-shadow: inset 3px 0 0 var(--theme-primary);
    }

        .sidebar-link.active i,
        .sidebar-dropdown-toggle[aria-expanded="true"] i:first-child {
            color: var(--theme-primary-light);
        }

/* Submenu Links */
.sidebar-submenu {
    padding-left: 20px;
    margin-bottom: 6px;
}

    .sidebar-submenu .sidebar-link {
        min-height: 38px;
        font-size: 12.5px; /* Increased from 10.5px */
        color: rgba(255, 255, 255, 0.68);
    }

        .sidebar-submenu .sidebar-link i {
            font-size: 14px;
            width: 20px;
            margin-right: 8px;
        }

/* Sidebar Bottom / Sign Out */
.sidebar-bottom {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

    .sidebar-bottom .sidebar-link {
        font-size: 13.5px;
        color: rgba(255, 255, 255, 0.75);
    }


/* =========================================================
   SCROLLBAR
========================================================= */

.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 250, 0.18);
    border-radius: 10px;
}

    .sidebar::-webkit-scrollbar-thumb:hover {
        background: rgba(167, 139, 250, 0.30);
    }


/* =========================================================
   MOBILE
========================================================= */

/* =========================================================
   MOBILE RESPONSIVENESS & SIDEBAR TOGGLE FIXES
   ========================================================= */

@media (max-width: 991.98px) {
    /* Position sidebar off-screen by default on mobile/tablets */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: none;
    }

        /* When toggled open via hamburger menu */
        .sidebar.open {
            transform: translateX(0);
            box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
        }

    /* Main area takes full screen width on mobile */
    .main-area {
        margin-left: 0 !important;
        width: 100%;
    }

    /* Make topbar and content responsive */
    .topbar {
        padding: 0 15px;
    }

    .page-content {
        padding: 15px;
    }
}

/* Extra small devices / Mobile phones */
@media (max-width: 575.98px) {
    .sidebar {
        width: 260px; /* Slimmer sidebar for small phones */
    }

    .page-content {
        padding: 10px;
    }

    .card {
        padding: 12px !important;
    }

    /* Prevent tables from breaking layout on small mobile screens */
    .table-responsive {
        width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 500px) {

    .sidebar {
        width: 235px;
    }

    .sidebar-brand {
        padding: 0 18px;
    }

    .sidebar-nav {
        padding-left: 10px;
        padding-right: 10px;
    }
}



/* =========================================================
   THEME VARIABLES
========================================================= */

:root {
    --theme-primary: #7C3AED;
    --theme-primary-dark: #6D28D9;
    --theme-primary-light: #A78BFA;
    --theme-soft: #F5F3FF;
    --theme-sidebar-top: #18181B;
    --theme-sidebar-middle: #202024;
    --theme-sidebar-bottom: #2F2F34;
    --theme-page-bg: #D8D4E2;
}


/* =========================================================
   BLUE THEME
========================================================= */

body[data-theme="blue"] {
    --theme-primary: #2563EB;
    --theme-primary-dark: #1D4ED8;
    --theme-primary-light: #60A5FA;
    --theme-soft: #EFF6FF;
    --theme-sidebar-top: #172033;
    --theme-sidebar-middle: #1E293B;
    --theme-sidebar-bottom: #334155;
    --theme-page-bg: #D7DFEC;
}


/* =========================================================
   EMERALD THEME
========================================================= */

body[data-theme="emerald"] {
    --theme-primary: #059669;
    --theme-primary-dark: #047857;
    --theme-primary-light: #34D399;
    --theme-soft: #ECFDF5;
    --theme-sidebar-top: #17201D;
    --theme-sidebar-middle: #1F2925;
    --theme-sidebar-bottom: #33413B;
    --theme-page-bg: #D5E2DD;
}


/* =========================================================
   ORANGE THEME
========================================================= */

body[data-theme="orange"] {
    --theme-primary: #EA580C;
    --theme-primary-dark: #C2410C;
    --theme-primary-light: #FB923C;
    --theme-soft: #FFF7ED;
    --theme-sidebar-top: #241B17;
    --theme-sidebar-middle: #2B2420;
    --theme-sidebar-bottom: #40332C;
    --theme-page-bg: #E5D9D2;
}
/* =========================================================
   ROSE THEME
========================================================= */

body[data-theme="rose"] {
    --theme-primary: #E11D48;
    --theme-primary-dark: #BE123C;
    --theme-primary-light: #FB7185;
    --theme-soft: #FFF1F2;
    --theme-sidebar-top: #24171B;
    --theme-sidebar-middle: #2C1D22;
    --theme-sidebar-bottom: #3F2930;
    --theme-page-bg: #E7D7DB;
}


/* =========================================================
   CYAN THEME
========================================================= */

body[data-theme="cyan"] {
    --theme-primary: #0891B2;
    --theme-primary-dark: #0E7490;
    --theme-primary-light: #22D3EE;
    --theme-soft: #ECFEFF;
    --theme-sidebar-top: #142125;
    --theme-sidebar-middle: #1A2B30;
    --theme-sidebar-bottom: #294047;
    --theme-page-bg: #D4E2E5;
}


/* =========================================================
   AMBER THEME
========================================================= */

body[data-theme="amber"] {
    --theme-primary: #D97706;
    --theme-primary-dark: #B45309;
    --theme-primary-light: #FBBF24;
    --theme-soft: #FFFBEB;
    --theme-sidebar-top: #241E15;
    --theme-sidebar-middle: #2D261A;
    --theme-sidebar-bottom: #403622;
    --theme-page-bg: #E5DED0;
}


/* =========================================================
   GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--theme-page-bg);
    color: #27272A;
}

body {
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button,
a,
input,
textarea,
select {
    transition: all 0.2s ease;
}


/* =========================================================
   MAIN CMS LAYOUT
========================================================= */

.cms-wrapper {
    display: flex;
    min-height: 100vh;
}

.main-area {
    flex: 1;
    min-width: 0;
    margin-left: 255px;
    background: var(--theme-page-bg);
}

.page-content {
    min-height: calc(100vh - 72px);
    padding: 32px;
    background: var(--theme-page-bg);
}


/* =========================================================
   TOPBAR
========================================================= */

.topbar {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    background: #FFFFFF;
    border-bottom: 1px solid #E5E1EE;
    position: relative;
    z-index: 10;
}


/* =========================================================
   TOPBAR LEFT
========================================================= */

.topbar-left {
    display: flex;
    align-items: center;
    min-width: 0;
}


/* =========================================================
   PAGE HEADING
========================================================= */

.page-heading h1 {
    margin: 0;
    color: #27272A;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
}

.page-heading p {
    margin: 3px 0 0;
    color: #8A8A93;
    font-size: 9.5px;
    font-weight: 400;
}


/* =========================================================
   TOPBAR RIGHT
========================================================= */

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}


/* =========================================================
   NOTIFICATIONS
========================================================= */

.notification-btn {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #E5E1EE;
    border-radius: 8px;
    background: #FFFFFF;
    color: #71717A;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

    .notification-btn:hover {
        background: var(--theme-soft);
        border-color: var(--theme-primary-light);
        color: var(--theme-primary);
    }

.notification-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--theme-primary);
    border: 1px solid #FFFFFF;
}


/* =========================================================
   USER PROFILE
========================================================= */

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 18px;
    border-left: 1px solid #E5E1EE;
    cursor: pointer;
}

.user-avatar {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--theme-soft);
    color: var(--theme-primary);
    font-size: 13px;
    font-weight: 700;
}

.user-info {
    display: flex;
    flex-direction: column;
}

    .user-info strong {
        color: #35353A;
        font-size: 10.5px;
        font-weight: 650;
    }

    .user-info span {
        margin-top: 2px;
        color: #8A8A93;
        font-size: 8.5px;
    }

.profile-arrow {
    margin-left: 3px;
    color: #92929A;
    font-size: 10px;
    transition: color 0.2s ease;
}

.user-profile:hover .profile-arrow {
    color: var(--theme-primary);
}


/* =========================================================
   TOPBAR SETTINGS MENU
========================================================= */

.topbar-menu {
    position: relative;
}

.topbar-menu-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #E5E1EE;
    border-radius: 8px;
    background: #FFFFFF;
    color: #71717A;
    font-size: 17px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

    .topbar-menu-btn:hover,
    .topbar-menu-btn.active {
        background: var(--theme-soft);
        border-color: var(--theme-primary-light);
        color: var(--theme-primary);
    }


/* =========================================================
   TOPBAR DROPDOWN
========================================================= */

.topbar-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 245px;
    padding: 8px;
    background: #FFFFFF;
    border: 1px solid #E5E1EE;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(24, 24, 27, 0.12), 0 4px 12px rgba(24, 24, 27, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 1000;
}

    .topbar-dropdown.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }


/* =========================================================
   DROPDOWN HEADER
========================================================= */

.dropdown-header {
    padding: 8px 10px 9px;
    color: #92929A;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}


/* =========================================================
   DROPDOWN ITEMS
========================================================= */

.dropdown-item,
.dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px;
    border-radius: 8px;
    text-decoration: none;
}

.dropdown-item {
    color: #27272A;
}

.dropdown-link {
    transition: background 0.18s ease;
}

    .dropdown-link:hover {
        background: #F8F7FC;
    }


/* =========================================================
   DROPDOWN ICON
========================================================= */

.dropdown-item-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--theme-soft);
    color: var(--theme-primary);
    font-size: 13px;
}


/* =========================================================
   DROPDOWN TEXT
========================================================= */

.dropdown-item-content {
    min-width: 0;
}

    .dropdown-item-content strong {
        display: block;
        color: #3F3F46;
        font-size: 9.5px;
        font-weight: 650;
    }

    .dropdown-item-content span {
        display: block;
        margin-top: 2px;
        color: #A1A1AA;
        font-size: 8px;
    }


/* =========================================================
   THEME OPTIONS
========================================================= */

.theme-options {
    display: grid;
    grid-template-columns: repeat(4, 25px);
    gap: 10px;
    padding: 8px 9px 12px 51px;
}

.theme-option {
    width: 25px;
    height: 25px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

    .theme-option:hover {
        transform: scale(1.12);
    }

    .theme-option.active {
        border-color: #27272A;
        box-shadow: 0 0 0 2px #FFFFFF;
    }


/* =========================================================
   THEME OPTION COLORS
========================================================= */

.theme-purple {
    background: linear-gradient(135deg, #18181B, #7C3AED);
}

.theme-blue {
    background: linear-gradient(135deg, #172033, #2563EB);
}

.theme-emerald {
    background: linear-gradient(135deg, #17201D, #059669);
}

.theme-orange {
    background: linear-gradient(135deg, #241B17, #EA580C);
}

.theme-rose {
    background: linear-gradient(135deg, #24171B, #E11D48);
}

.theme-cyan {
    background: linear-gradient(135deg, #142125, #0891B2);
}

.theme-amber {
    background: linear-gradient(135deg, #241E15, #D97706);
}

/* =========================================================
   DROPDOWN DIVIDER
========================================================= */

.dropdown-divider {
    height: 1px;
    margin: 6px 5px;
    background: #EEEAF4;
}


/* =========================================================
   LOGOUT
========================================================= */

.logout-icon {
    background: #FEF2F2;
    color: #DC2626;
}

.dropdown-link:hover .logout-icon {
    background: #FEE2E2;
}


/* =========================================================
   AUTH PAGES
========================================================= */

.auth-page {
    min-height: 100vh;
    margin: 0;
    color: #1E293B;
}

.auth-container {
    min-height: 100vh;
    width: 100%;
    display: grid;
    grid-template-columns: 45% 55%;
    background: linear-gradient( 135deg, var(--theme-sidebar-top) 0%, var(--theme-sidebar-middle) 30%, color-mix( in srgb, var(--theme-primary-dark) 70%, var(--theme-sidebar-middle) ) 60%, var(--theme-primary) 100% );
}


/* =========================================================
   AUTH BRAND PANEL
========================================================= */

.auth-brand-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: transparent !important;
    color: #FFFFFF;
    overflow: hidden;
}

    /* =========================================================
   ANIMATED AUTH BACKGROUND CIRCLES
========================================================= */

    .auth-brand-panel::before {
        content: "";
        position: absolute;
        width: 420px;
        height: 420px;
        top: -220px;
        right: -180px;
        border-radius: 50%;
        background: color-mix( in srgb, var(--theme-primary-light) 10%, transparent );
        animation: authCircleOne 12s ease-in-out infinite;
    }

    .auth-brand-panel::after {
        content: "";
        position: absolute;
        width: 300px;
        height: 300px;
        bottom: -170px;
        left: -140px;
        border-radius: 50%;
        background: color-mix( in srgb, var(--theme-primary) 10%, transparent );
        animation: authCircleTwo 15s ease-in-out infinite;
    }


/* =========================================================
   CIRCLE ANIMATIONS
========================================================= */

@keyframes authCircleOne {

    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(-25px, 20px) scale(1.06);
    }

    50% {
        transform: translate(-10px, 45px) scale(1.12);
    }

    75% {
        transform: translate(20px, 20px) scale(1.05);
    }
}


@keyframes authCircleTwo {

    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(25px, -20px) scale(1.08);
    }

    50% {
        transform: translate(45px, -5px) scale(1.15);
    }

    75% {
        transform: translate(20px, 25px) scale(1.06);
    }
}


/* =========================================================
   AUTH BRAND CONTENT
========================================================= */

.auth-brand-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 430px;
}

.auth-logo {
    width: 125px;
    height: auto;
    display: block;
    margin-bottom: 38px;
}

.auth-brand-content h1 {
    margin: 0;
    color: #FFFFFF;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.7px;
}

.auth-brand-content > p {
    max-width: 390px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.70);
    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   AUTH DIVIDER
========================================================= */

.auth-brand-divider {
    width: 45px;
    height: 3px;
    margin: 28px 0 22px;
    background: var(--theme-primary);
    border-radius: 10px;
}


/* =========================================================
   AUTH FEATURES
========================================================= */

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 11px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 11px;
}

    .auth-feature i {
        color: var(--theme-primary-light);
        font-size: 15px;
    }


/* =========================================================
   AUTH FORM PANEL
========================================================= */

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background: transparent !important;
}

.auth-form-container {
    width: 100%;
    max-width: 430px;
    padding: 42px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}


/* =========================================================
   AUTH HEADER
========================================================= */

.auth-header {
    margin-bottom: 30px;
}

.auth-small-title {
    display: block;
    margin-bottom: 8px;
    color: var(--theme-primary);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.auth-header h2 {
    margin: 0;
    color: #1E293B;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.auth-header p {
    margin: 8px 0 0;
    color: #64748B;
    font-size: 11px;
    line-height: 1.6;
}


/* =========================================================
   AUTH VALIDATION
========================================================= */

.validation-summary-errors {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 20px;
    padding: 11px 13px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    color: #B91C1C;
    font-size: 10px;
    line-height: 1.5;
}

    .validation-summary-errors i {
        margin-top: 1px;
        font-size: 13px;
    }


/* =========================================================
   AUTH FORM
========================================================= */

.auth-form-group {
    margin-bottom: 19px;
}

    .auth-form-group label {
        display: block;
        margin-bottom: 7px;
        color: #334155;
        font-size: 10px;
        font-weight: 650;
    }


/* =========================================================
   AUTH INPUT
========================================================= */

.auth-input-wrapper {
    position: relative;
}

    .auth-input-wrapper > i {
        position: absolute;
        left: 13px;
        top: 50%;
        transform: translateY(-50%);
        color: #94A3B8;
        font-size: 15px;
        pointer-events: none;
        transition: color 0.2s ease;
    }

.auth-input {
    width: 100%;
    height: 44px;
    padding: 0 13px 0 39px;
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    outline: none;
    color: #1E293B;
    font-size: 11px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

    .auth-input::placeholder {
        color: #94A3B8;
    }

    .auth-input:hover {
        border-color: var(--theme-primary-light);
    }

    .auth-input:focus {
        background: #FFFFFF;
        border-color: var(--theme-primary);
        box-shadow: 0 0 0 3px color-mix( in srgb, var(--theme-primary) 10%, transparent );
    }

.auth-input-wrapper:focus-within > i {
    color: var(--theme-primary);
}


/* =========================================================
   AUTH BUTTON
========================================================= */

.auth-button {
    width: 100%;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 8px;
    border: none;
    border-radius: 8px;
    background: var(--theme-primary);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 650;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

    .auth-button:hover {
        background: var(--theme-primary-dark);
        transform: translateY(-1px);
        box-shadow: 0 6px 15px color-mix( in srgb, var(--theme-primary) 22%, transparent );
    }

    .auth-button i {
        font-size: 13px;
    }


/* =========================================================
   AUTH SWITCH
========================================================= */

.auth-switch {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 25px;
    color: #64748B;
    font-size: 10px;
}

    .auth-switch a {
        color: var(--theme-primary);
        font-weight: 650;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .auth-switch a:hover {
            color: var(--theme-primary-dark);
        }


/* =========================================================
   AUTH FOOTER
========================================================= */

.auth-footer {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #E2E8F0;
    text-align: center;
    color: #94A3B8;
    font-size: 9px;
}


/* =========================================================
   CMS FOOTER
========================================================= */

.cms-footer {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: #FFFFFF;
    border-top: 1px solid #DDD8EA;
    color: #71717A;
}

    .cms-footer strong {
        display: block;
        color: #3F3F46;
        font-size: 10px;
        font-weight: 700;
    }

    .cms-footer span {
        font-size: 8.5px;
    }

    .cms-footer strong + span {
        display: block;
        margin-top: 3px;
        color: #A1A1AA;
    }

.footer-right {
    display: flex;
    align-items: center;
    gap: 9px;
}

.footer-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--theme-primary-light);
}


/* =========================================================
   GLOBAL SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: #F3F2F6;
}

::-webkit-scrollbar-thumb {
    background: #C8C2D3;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #AFA8BD;
    }


/* =========================================================
   RESPONSIVE — 1100px
========================================================= */

@media (max-width: 1100px) {

    .page-content {
        padding: 25px;
    }

    .topbar {
        padding: 0 25px;
    }
}


/* =========================================================
   RESPONSIVE — 900px
========================================================= */

@media (max-width: 900px) {

    .main-area {
        margin-left: 0;
    }

    .page-content {
        padding: 22px;
    }

    .user-info,
    .profile-arrow {
        display: none;
    }

    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        min-height: 340px;
        padding: 45px 35px;
    }

    .auth-brand-content {
        max-width: 600px;
    }

    .auth-logo {
        margin-bottom: 25px;
    }

    .auth-brand-content h1 {
        font-size: 28px;
    }

    .auth-form-panel {
        padding: 40px 25px;
    }
}


/* =========================================================
   RESPONSIVE — 700px
========================================================= */

@media (max-width: 700px) {

    .topbar {
        height: 65px;
        padding: 0 17px;
    }

    .topbar-right {
        gap: 9px;
    }

    .page-heading h1 {
        font-size: 18px;
    }

    .page-heading p {
        display: none;
    }

    .page-content {
        padding: 17px;
    }

    .cms-footer {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 6px;
        padding: 14px 20px;
    }

    .footer-right {
        gap: 7px;
    }

    .auth-brand-panel {
        min-height: 300px;
        padding: 35px 25px;
    }

    .auth-brand-content h1 {
        font-size: 25px;
    }

    .auth-brand-content > p {
        font-size: 11px;
    }

    .auth-features {
        gap: 9px;
    }

    .auth-feature {
        font-size: 10px;
    }

    .auth-form-panel {
        padding: 25px 16px;
    }

    .auth-form-container {
        padding: 30px 24px;
    }

    .auth-header h2 {
        font-size: 25px;
    }
}


/* =========================================================
   RESPONSIVE — 450px
========================================================= */

@media (max-width: 450px) {

    .topbar {
        padding: 0 13px;
    }

    .page-content {
        padding: 13px;
    }

    .topbar-right {
        gap: 5px;
    }

    .notification-btn {
        width: 36px;
        height: 36px;
    }

    .user-avatar {
        width: 36px;
        height: 36px;
    }

    .topbar-menu-btn {
        width: 36px;
        height: 36px;
    }

    .auth-form-container {
        padding: 27px 20px;
    }
}
/* =========================================================
   SIDEBAR COLLAPSIBLE DROPDOWNS
   ========================================================= */

.sidebar-dropdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 43px;
    margin-bottom: 3px;
    padding: 0 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.66);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

    .sidebar-dropdown-toggle:hover {
        background: color-mix(in srgb, var(--theme-primary) 12%, transparent);
        color: #FFFFFF;
        transform: translateX(3px);
    }

    .sidebar-dropdown-toggle i:first-child {
        width: 22px;
        margin-right: 10px;
        color: rgba(255, 255, 255, 0.46);
        font-size: 16px;
        text-align: center;
        transition: color 0.2s ease;
    }

    .sidebar-dropdown-toggle:hover i:first-child {
        color: var(--theme-primary-light);
    }

    .sidebar-dropdown-toggle .chevron-icon {
        font-size: 10px;
        color: rgba(255, 255, 255, 0.4);
        transition: transform 0.25s ease, color 0.2s ease;
    }

    .sidebar-dropdown-toggle[aria-expanded="true"] {
        color: #FFFFFF;
        font-weight: 600;
        background: color-mix(in srgb, var(--theme-primary) 16%, transparent);
    }

        .sidebar-dropdown-toggle[aria-expanded="true"] .chevron-icon {
            transform: rotate(180deg);
            color: var(--theme-primary-light);
        }

/* Sub-menu Container & Links */
.sidebar-submenu {
    padding-left: 28px;
    margin-bottom: 5px;
}

    .sidebar-submenu .sidebar-link {
        min-height: 36px;
        font-size: 10.5px;
        color: rgba(255, 255, 255, 0.55);
    }

        .sidebar-submenu .sidebar-link i {
            font-size: 13px;
            width: 18px;
            margin-right: 8px;
        }

        .sidebar-submenu .sidebar-link:hover {
            color: #FFFFFF;
            background: color-mix(in srgb, var(--theme-primary) 10%, transparent);
        }
/* Sidebar fixed width */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 275px;
    z-index: 1000;
}

/* Main Area offset matches Sidebar width */
.cms-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.main-area {
    flex: 1;
    min-width: 0;
    margin-left: 275px; /* Pushes Header, Main Content, and Footer past sidebar */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-content {
    flex: 1;
}
/* =========================================================
   MOBILE HEADER OPTIMIZATIONS
   ========================================================= */
@media (max-width: 767.98px) {
    .topbar {
        padding: 0 12px !important;
        height: 64px !important;
    }

    .page-heading h1 {
        font-size: 15px !important;
        max-width: 180px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .topbar-right {
        gap: 10px !important;
    }

    .user-profile {
        padding-left: 10px !important;
    }
}
/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 285px; /* Expanded slightly to comfortably fit larger text */
    color: #FFFFFF;
    padding: 0;
    overflow-y: auto;
    z-index: 1000;
    border-right: 1px solid #27272A;
    background: radial-gradient( circle at 50% 100%, color-mix( in srgb, var(--theme-primary) 12%, transparent ), transparent 38% ), linear-gradient( to bottom, var(--theme-sidebar-top) 0%, var(--theme-sidebar-middle) 50%, var(--theme-sidebar-bottom) 100% );
}

/* Ensure layout offset matches new sidebar width */
.main-area {
    flex: 1;
    min-width: 0;
    margin-left: 285px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================================================
   BRAND
========================================================= */

.sidebar-brand {
    height: 82px;
    display: flex;
    align-items: center;
    padding: 0 22px;
    border-bottom: 1px solid rgba(167, 139, 250, 0.12);
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 14px;
    border-radius: 10px;
    background: #FFFFFF;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25), 0 0 20px rgba(124, 58, 237, 0.08);
}

    .brand-mark img {
        width: 32px;
        height: 32px;
        object-fit: contain;
    }

.brand-text h2 {
    margin: 0;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.brand-text span {
    display: block;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    font-weight: 500;
}

/* =========================================================
   NAVIGATION & SECTION HEADERS
========================================================= */

.sidebar-nav {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 82px);
    padding: 22px 14px;
}

.nav-section {
    margin-bottom: 26px;
}

.nav-section-title {
    display: block;
    margin: 0 10px 10px;
    color: rgba(255, 255, 255, 0.50);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

/* =========================================================
   SIDEBAR LINKS & DROPDOWNS (LARGER FONTS)
========================================================= */

.sidebar-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 4px;
    padding: 0 14px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px; /* Clear, prominent font size */
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

    .sidebar-link i {
        width: 24px;
        margin-right: 12px;
        color: rgba(255, 255, 255, 0.60);
        font-size: 18px;
        text-align: center;
        transition: color 0.2s ease, transform 0.2s ease;
    }

.sidebar-dropdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    margin-bottom: 4px;
    padding: 0 14px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px; /* Clear, prominent font size */
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

    .sidebar-dropdown-toggle i:first-child {
        width: 24px;
        margin-right: 12px;
        color: rgba(255, 255, 255, 0.60);
        font-size: 18px;
        text-align: center;
    }

    .sidebar-dropdown-toggle .chevron-icon {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.5);
        transition: transform 0.25s ease, color 0.2s ease;
    }

    .sidebar-dropdown-toggle[aria-expanded="true"] .chevron-icon {
        transform: rotate(180deg);
        color: var(--theme-primary-light);
    }

    /* Hover States */
    .sidebar-link:hover,
    .sidebar-dropdown-toggle:hover {
        background: color-mix( in srgb, var(--theme-primary) 14%, transparent );
        color: #FFFFFF;
        transform: translateX(3px);
    }

        .sidebar-link:hover i,
        .sidebar-dropdown-toggle:hover i:first-child {
            color: var(--theme-primary-light);
            transform: scale(1.08);
        }

    /* Active State */
    .sidebar-link.active,
    .sidebar-dropdown-toggle[aria-expanded="true"] {
        background: linear-gradient( 90deg, color-mix( in srgb, var(--theme-primary) 24%, transparent ), color-mix( in srgb, var(--theme-primary) 10%, transparent ) );
        color: #FFFFFF;
        font-weight: 600;
        box-shadow: inset 3px 0 0 var(--theme-primary);
    }

        .sidebar-link.active i,
        .sidebar-dropdown-toggle[aria-expanded="true"] i:first-child {
            color: var(--theme-primary-light);
        }

/* Submenu Links */
.sidebar-submenu {
    padding-left: 24px;
    margin-bottom: 6px;
}

    .sidebar-submenu .sidebar-link {
        min-height: 40px;
        font-size: 13px; /* Balanced submenu font size */
        color: rgba(255, 255, 255, 0.72);
    }

        .sidebar-submenu .sidebar-link i {
            font-size: 15px;
            width: 20px;
            margin-right: 10px;
        }

/* Sidebar Bottom / Sign Out */
.sidebar-bottom {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

    .sidebar-bottom .sidebar-link {
        font-size: 14px;
        color: rgba(255, 255, 255, 0.80);
    }

/* =========================================================
   SCROLLBAR
========================================================= */

.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 250, 0.18);
    border-radius: 10px;
}

    .sidebar::-webkit-scrollbar-thumb:hover {
        background: rgba(167, 139, 250, 0.30);
    }

/* =========================================================
   MOBILE RESPONSIVENESS
========================================================= */

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: none;
    }

        .sidebar.open {
            transform: translateX(0);
            box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
        }

    .main-area {
        margin-left: 0 !important;
        width: 100%;
    }

    .topbar {
        padding: 0 15px;
    }

    .page-content {
        padding: 15px;
    }
}

@media (max-width: 575.98px) {
    .sidebar {
        width: 260px;
    }

    .page-content {
        padding: 10px;
    }

    .card {
        padding: 12px !important;
    }

    .table-responsive {
        width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* =========================================================
   THEME VARIABLES
========================================================= */

:root {
    --theme-primary: #7C3AED;
    --theme-primary-dark: #6D28D9;
    --theme-primary-light: #A78BFA;
    --theme-soft: #F5F3FF;
    --theme-sidebar-top: #18181B;
    --theme-sidebar-middle: #202024;
    --theme-sidebar-bottom: #2F2F34;
    --theme-page-bg: #D8D4E2;
}

body[data-theme="blue"] {
    --theme-primary: #2563EB;
    --theme-primary-dark: #1D4ED8;
    --theme-primary-light: #60A5FA;
    --theme-soft: #EFF6FF;
    --theme-sidebar-top: #172033;
    --theme-sidebar-middle: #1E293B;
    --theme-sidebar-bottom: #334155;
    --theme-page-bg: #D7DFEC;
}

body[data-theme="emerald"] {
    --theme-primary: #059669;
    --theme-primary-dark: #047857;
    --theme-primary-light: #34D399;
    --theme-soft: #ECFDF5;
    --theme-sidebar-top: #17201D;
    --theme-sidebar-middle: #1F2925;
    --theme-sidebar-bottom: #33413B;
    --theme-page-bg: #D5E2DD;
}

body[data-theme="orange"] {
    --theme-primary: #EA580C;
    --theme-primary-dark: #C2410C;
    --theme-primary-light: #FB923C;
    --theme-soft: #FFF7ED;
    --theme-sidebar-top: #241B17;
    --theme-sidebar-middle: #2B2420;
    --theme-sidebar-bottom: #40332C;
    --theme-page-bg: #E5D9D2;
}

body[data-theme="rose"] {
    --theme-primary: #E11D48;
    --theme-primary-dark: #BE123C;
    --theme-primary-light: #FB7185;
    --theme-soft: #FFF1F2;
    --theme-sidebar-top: #24171B;
    --theme-sidebar-middle: #2C1D22;
    --theme-sidebar-bottom: #3F2930;
    --theme-page-bg: #E7D7DB;
}

body[data-theme="cyan"] {
    --theme-primary: #0891B2;
    --theme-primary-dark: #0E7490;
    --theme-primary-light: #22D3EE;
    --theme-soft: #ECFEFF;
    --theme-sidebar-top: #142125;
    --theme-sidebar-middle: #1A2B30;
    --theme-sidebar-bottom: #294047;
    --theme-page-bg: #D4E2E5;
}

body[data-theme="amber"] {
    --theme-primary: #D97706;
    --theme-primary-dark: #B45309;
    --theme-primary-light: #FBBF24;
    --theme-soft: #FFFBEB;
    --theme-sidebar-top: #241E15;
    --theme-sidebar-middle: #2D261A;
    --theme-sidebar-bottom: #403622;
    --theme-page-bg: #E5DED0;
}

/* =========================================================
   GLOBAL & LAYOUT BASE
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--theme-page-bg);
    color: #27272A;
}

body {
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

button, input, textarea, select {
    font-family: inherit;
    transition: all 0.2s ease;
}

.cms-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.page-content {
    flex: 1;
    min-height: calc(100vh - 72px);
    padding: 32px;
    background: var(--theme-page-bg);
}

/* =========================================================
   TOPBAR & MISC COMPONENTS
========================================================= */

.topbar {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    background: #FFFFFF;
    border-bottom: 1px solid #E5E1EE;
    position: relative;
    z-index: 10;
}

.topbar-left {
    display: flex;
    align-items: center;
    min-width: 0;
}

.page-heading h1 {
    margin: 0;
    color: #27272A;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
}

.page-heading p {
    margin: 3px 0 0;
    color: #8A8A93;
    font-size: 10px;
    font-weight: 400;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-btn {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #E5E1EE;
    border-radius: 8px;
    background: #FFFFFF;
    color: #71717A;
    font-size: 16px;
    cursor: pointer;
}

    .notification-btn:hover {
        background: var(--theme-soft);
        border-color: var(--theme-primary-light);
        color: var(--theme-primary);
    }

.notification-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--theme-primary);
    border: 1px solid #FFFFFF;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 18px;
    border-left: 1px solid #E5E1EE;
    cursor: pointer;
}

.user-avatar {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--theme-soft);
    color: var(--theme-primary);
    font-size: 13px;
    font-weight: 700;
}

.user-info strong {
    color: #35353A;
    font-size: 11px;
    font-weight: 650;
}

.user-info span {
    margin-top: 2px;
    color: #8A8A93;
    font-size: 9px;
}

.profile-arrow {
    margin-left: 3px;
    color: #92929A;
    font-size: 10px;
}

.user-profile:hover .profile-arrow {
    color: var(--theme-primary);
}

.topbar-menu {
    position: relative;
}

.topbar-menu-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #E5E1EE;
    border-radius: 8px;
    background: #FFFFFF;
    color: #71717A;
    font-size: 17px;
    cursor: pointer;
}

    .topbar-menu-btn:hover,
    .topbar-menu-btn.active {
        background: var(--theme-soft);
        border-color: var(--theme-primary-light);
        color: var(--theme-primary);
    }

.topbar-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 245px;
    padding: 8px;
    background: #FFFFFF;
    border: 1px solid #E5E1EE;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(24, 24, 27, 0.12), 0 4px 12px rgba(24, 24, 27, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 1000;
}

    .topbar-dropdown.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.dropdown-header {
    padding: 8px 10px 9px;
    color: #92929A;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.dropdown-item,
.dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px;
    border-radius: 8px;
    text-decoration: none;
}

    .dropdown-link:hover {
        background: #F8F7FC;
    }

.dropdown-item-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--theme-soft);
    color: var(--theme-primary);
    font-size: 13px;
}

.dropdown-item-content strong {
    display: block;
    color: #3F3F46;
    font-size: 10px;
    font-weight: 650;
}

.dropdown-item-content span {
    display: block;
    margin-top: 2px;
    color: #A1A1AA;
    font-size: 9px;
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(4, 25px);
    gap: 10px;
    padding: 8px 9px 12px 51px;
}

.theme-option {
    width: 25px;
    height: 25px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

    .theme-option:hover {
        transform: scale(1.12);
    }

    .theme-option.active {
        border-color: #27272A;
        box-shadow: 0 0 0 2px #FFFFFF;
    }

.theme-purple {
    background: linear-gradient(135deg, #18181B, #7C3AED);
}

.theme-blue {
    background: linear-gradient(135deg, #172033, #2563EB);
}

.theme-emerald {
    background: linear-gradient(135deg, #17201D, #059669);
}

.theme-orange {
    background: linear-gradient(135deg, #241B17, #EA580C);
}

.theme-rose {
    background: linear-gradient(135deg, #24171B, #E11D48);
}

.theme-cyan {
    background: linear-gradient(135deg, #142125, #0891B2);
}

.theme-amber {
    background: linear-gradient(135deg, #241E15, #D97706);
}

.dropdown-divider {
    height: 1px;
    margin: 6px 5px;
    background: #EEEAF4;
}

.logout-icon {
    background: #FEF2F2;
    color: #DC2626;
}

.dropdown-link:hover .logout-icon {
    background: #FEE2E2;
}

/* =========================================================
   CMS FOOTER
========================================================= */

.cms-footer {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    background: #FFFFFF;
    border-top: 1px solid #DDD8EA;
    color: #71717A;
}

    .cms-footer strong {
        display: block;
        color: #3F3F46;
        font-size: 10px;
        font-weight: 700;
    }

    .cms-footer span {
        font-size: 9px;
    }

.footer-right {
    display: flex;
    align-items: center;
    gap: 9px;
}

.footer-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--theme-primary-light);
}

/* =========================================================
   GLOBAL SCROLLBAR
========================================================= */

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: #F3F2F6;
}

::-webkit-scrollbar-thumb {
    background: #C8C2D3;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #AFA8BD;
    }

@media (max-width: 767.98px) {
    .topbar {
        padding: 0 12px !important;
        height: 64px !important;
    }

    .page-heading h1 {
        font-size: 15px !important;
        max-width: 180px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .topbar-right {
        gap: 10px !important;
    }

    .user-profile {
        padding-left: 10px !important;
    }
}
/* Fix iOS viewport sizing and scrolling */
html {
    height: -webkit-fill-available;
}

body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    -webkit-text-size-adjust: 100%; /* Prevents iOS font zooming bug on orientation change */
}

.cms-wrapper {
    display: flex;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    width: 100%;
    position: relative;
    overflow-x: hidden; /* Prevents horizontal sliding bugs on iOS */
}

.main-area {
    flex: 1;
    min-width: 0;
    margin-left: 285px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-overflow-scrolling: touch; /* Smooth momentum scrolling for iOS */
}
@media (max-width: 991.98px) {
    .sidebar {
        -webkit-transform: translateX(-100%);
        transform: translateX(-100%);
        -webkit-transition: -webkit-transform 0.3s ease-in-out;
        transition: transform 0.3s ease-in-out;
        box-shadow: none;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling inside sidebar on iOS */
    }

        .sidebar.open {
            -webkit-transform: translateX(0);
            transform: translateX(0);
            box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
        }

    .main-area {
        margin-left: 0 !important;
        width: 100%;
    }
}
/* Disable iOS input zoom (must be at least 16px font size on focus) */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important; /* Prevents auto-zoom on iOS Safari */
    }
}

/* Remove iOS tap highlight and button styling glitches */
a, button, .sidebar-link, .sidebar-dropdown-toggle, .notification-btn, .topbar-menu-btn {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}