/* Powerjeevi Admin Panel - aligned with user panel visual system */

:root {
    --primary-bg: #121212;
    --secondary-bg: #1e1e1e;
    --surface-dark: #161616;
    --accent-cyan: #00d2ff;
    --accent-purple: #4e54c8;
    --accent-pink: #ff4757;
    --accent-warning: #ff9f43;
    --accent-danger: #ff4757;
    --text-primary: #f8fafc;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --glass-bg: rgba(255, 255, 255, 0.035);
    --glass-border: rgba(255, 255, 255, 0.08);
    --primary-gradient: linear-gradient(45deg, #4e54c8, #00d2ff);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

body {
    background-color: var(--primary-bg);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    margin: 0;
    overflow-x: hidden;
}

body.admin-light {
    --primary-bg: #f5f7fb;
    --secondary-bg: #ffffff;
    --surface-dark: #eef2f7;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --glass-bg: rgba(78, 84, 200, 0.04);
    --glass-border: rgba(17, 24, 39, 0.1);
    --card-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    background-color: var(--primary-bg);
    color: var(--text-primary);
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: #303030;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar-backdrop {
    display: none;
}

.admin-sidebar {
    width: 280px;
    background: var(--secondary-bg);
    border-right: 1px solid var(--glass-border);
    padding: 24px 20px 22px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    box-sizing: border-box;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
    padding-left: 10px;
}

.sidebar-logo img {
    height: 45px;
    width: auto;
}

.sidebar-logo span {
    font-size: 1.15rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.mobile-menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    border: 1px solid rgba(0, 210, 255, 0.22);
    border-radius: 10px;
    background: rgba(0, 210, 255, 0.08);
    color: var(--accent-cyan);
    cursor: pointer;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 10px;
}

.nav-item {
    margin-bottom: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 0.92rem;
    font-weight: 500;
}

.nav-link i {
    font-size: 1.1rem;
    width: 25px;
    text-align: center;
}

.nav-link:hover {
    color: var(--accent-cyan);
    background: rgba(0, 210, 255, 0.08);
    transform: translateX(5px);
}

.nav-link.active {
    background: rgba(0, 210, 255, 0.08);
    color: var(--accent-cyan);
    border-left: 4px solid var(--accent-cyan);
    font-weight: 600;
}

.theme-toggle-wrap {
    padding: 10px 0 12px;
}

.theme-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    margin-top: 0;
    background: rgba(0, 210, 255, 0.08);
    border: 1px solid rgba(0, 210, 255, 0.22);
    border-radius: 12px;
    color: var(--accent-cyan);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--primary-gradient);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.22);
}

.theme-toggle i {
    font-size: 1rem;
}

.sidebar-footer {
    margin-top: 0;
    padding-top: 14px;
    border-top: 1px solid var(--glass-border);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--glass-bg);
    border-radius: 12px;
}

.user-info {
    min-width: 0;
}

.user-info .text-white,
.user-info .text-muted {
    white-space: nowrap;
}

.admin-logout {
    margin-left: auto;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.admin-logout:hover {
    color: var(--accent-cyan);
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--accent-cyan);
}

.admin-main {
    flex-grow: 1;
    margin-left: 280px;
    padding: 40px;
    transition: all 0.4s ease;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
}

.header-title h1 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.header-title p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card,
.card-premium {
    background: var(--secondary-bg);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    box-shadow: var(--card-shadow);
}

.stat-card {
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card:hover,
.card-premium:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 210, 255, 0.3);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.stat-info h3 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-trend {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.trend-up {
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent-cyan);
}

.stat-icon.users {
    background: rgba(0, 210, 255, 0.1) !important;
    color: var(--accent-cyan) !important;
}

.stat-icon.entries {
    background: rgba(78, 84, 200, 0.12) !important;
    color: var(--accent-purple) !important;
}

.stat-icon.revenue {
    background: rgba(255, 71, 87, 0.12) !important;
    color: var(--accent-danger) !important;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 25px;
    align-items: start;
}

.card-premium {
    padding: 30px;
    transition: all 0.3s ease;
    min-width: 0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.card-header h2 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0;
}

.premium-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.premium-table th {
    background: var(--primary-bg);
    border-bottom: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 15px 20px;
    text-transform: uppercase;
}

.premium-table tr {
    background: rgba(255, 255, 255, 0.025);
    transition: all 0.3s ease;
}

body.admin-light .premium-table tr {
    background: #fff;
}

body.admin-light .premium-table tr:hover {
    background: #f3f7fb;
}

.premium-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.premium-table td {
    color: #c9d1d9;
    font-size: 0.9rem;
    padding: 15px 20px;
    vertical-align: middle;
}

body.admin-light .premium-table td {
    color: #374151;
}

.premium-table td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.premium-table td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.badge-status {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-active {
    background: rgba(0, 210, 255, 0.1);
    color: var(--accent-cyan);
}

.status-pending {
    background: rgba(255, 159, 67, 0.12);
    color: var(--accent-warning);
}

.status-rejected {
    background: rgba(255, 71, 87, 0.12);
    color: var(--accent-danger);
}

.btn-premium {
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.4);
    color: #fff;
}

.text-accent,
.text-info {
    color: var(--accent-cyan) !important;
}

.text-muted {
    color: var(--text-secondary) !important;
}

.text-warning {
    color: var(--accent-warning) !important;
}

.text-danger {
    color: var(--accent-danger) !important;
}

.bg-dark {
    background-color: var(--primary-bg) !important;
}

.bg-secondary {
    background-color: #303030 !important;
}

.border-secondary {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.btn-outline-info {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan) !important;
}

.btn-outline-info:hover {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent !important;
}

.btn-outline-danger {
    color: var(--accent-danger);
}

.hover-cyan:hover {
    color: var(--accent-cyan) !important;
}

.form-control,
.input-group-text {
    background-color: var(--primary-bg) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    font-size: 0.9rem;
}

.form-control::placeholder {
    color: var(--text-muted);
}

.admin-modal {
    background: var(--secondary-bg);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    color: var(--text-primary);
}

.dropdown-menu-dark {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.dropdown-item {
    font-size: 0.9rem;
    color: #000000 !important;
    font-weight: 500 !important;
    transition: all 0.2s ease;
}

.dropdown-item i {
    color: #000000 !important;
    transition: all 0.2s ease;
}

/* Keep delete options red */
.dropdown-item.text-danger {
    color: var(--accent-danger, #ff4757) !important;
}

.dropdown-item.text-danger i {
    color: var(--accent-danger, #ff4757) !important;
}

/* Hover transitions */
.dropdown-item:hover {
    background: rgba(0, 210, 255, 0.1) !important;
    color: var(--accent-cyan, #00d2ff) !important;
}

.dropdown-item:hover i {
    color: var(--accent-cyan, #00d2ff) !important;
}

.dropdown-item.text-danger:hover {
    background: rgba(255, 71, 87, 0.08) !important;
    color: var(--accent-danger, #ff4757) !important;
}

.dropdown-item.text-danger:hover i {
    color: var(--accent-danger, #ff4757) !important;
}

body.admin-light .admin-sidebar,
body.admin-light .card-premium,
body.admin-light .stat-card,
body.admin-light .user-profile,
body.admin-light .admin-modal,
body.admin-light .dropdown-menu-dark {
    background: var(--secondary-bg);
}

body.admin-light .text-white,
body.admin-light .text-light {
    color: var(--text-primary) !important;
}

body.admin-light .stat-info h3,
body.admin-light .stat-info p {
    color: var(--text-primary) !important;
}

body.admin-light .text-muted {
    color: var(--text-secondary) !important;
}

body.admin-light .bg-dark,
body.admin-light .table-dark,
body.admin-light .table-premium th,
body.admin-light .premium-table th,
body.admin-light .form-control,
body.admin-light .input-group-text {
    background-color: var(--surface-dark) !important;
    color: var(--text-primary) !important;
}

body.admin-light .bg-secondary {
    background-color: #e5e7eb !important;
}

body.admin-light .badge.bg-dark,
body.admin-light .badge.bg-secondary {
    color: var(--text-primary) !important;
}

body.admin-light .table-dark td,
body.admin-light .table-dark th,
body.admin-light .table-premium td {
    background-color: #fff !important;
    color: #374151 !important;
}

body.admin-light .progress {
    background: #e5e7eb !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-main>* {
    animation: fadeIn 0.6s ease-out forwards;
}

@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .admin-sidebar {
        width: 80px;
        padding: 30px 10px;
    }

    .sidebar-logo span,
    .nav-link span,
    .user-profile .user-info {
        display: none;
    }

    .admin-main {
        margin-left: 80px;
        padding: 30px 24px;
    }

    .content-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Responsive polish */
@media (min-width: 993px) {
    .admin-sidebar {
        width: 250px;
        padding: 22px 18px 20px;
    }

    .admin-main {
        margin-left: 250px;
        padding: 32px 36px;
    }

    .sidebar-logo {
        margin-bottom: 28px;
    }

    .sidebar-logo img {
        height: 38px;
    }

    .sidebar-logo span {
        font-size: 1rem;
    }

    .nav-link {
        gap: 13px;
        padding: 10px 15px;
        font-size: 0.86rem;
    }

    .nav-link i {
        font-size: 1rem;
        width: 22px;
    }

    .content-header {
        gap: 20px;
        margin-bottom: 32px;
    }

    .header-title h1 {
        font-size: 1.55rem;
    }

    .header-title p {
        font-size: 0.82rem;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
        gap: 20px;
        margin-bottom: 32px;
    }

    .stat-card {
        padding: 22px;
    }

    .stat-icon {
        width: 44px;
        height: 44px;
        border-radius: 13px;
        font-size: 1.3rem;
        margin-bottom: 16px;
    }

    .stat-info h3 {
        font-size: 1.65rem;
    }

    .stat-info p,
    .premium-table th {
        font-size: 0.76rem;
    }

    .content-grid {
        gap: 20px;
    }

    .card-premium {
        padding: 24px;
    }

    .premium-table th,
    .premium-table td {
        padding: 13px 16px;
    }

    .premium-table td {
        font-size: 0.82rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 0.88rem;
    }

    .admin-wrapper {
        display: block;
    }

    .admin-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 16px;
        border-right: 0;
        border-bottom: 1px solid var(--glass-border);
    }

    .sidebar-logo {
        margin-bottom: 14px;
        padding-left: 0;
        justify-content: center;
    }

    .sidebar-logo img {
        height: 34px;
    }

    .sidebar-logo span {
        display: inline-block;
        font-size: 1rem;
    }

    .nav-menu {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 8px;
        flex-grow: 0;
        scrollbar-width: thin;
    }

    .nav-item {
        flex: 0 0 auto;
        margin-bottom: 0;
    }

    .nav-link {
        min-width: max-content;
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 0.82rem;
        gap: 8px;
    }

    .nav-link span,
    .user-profile .user-info {
        display: block;
    }

    .nav-link:hover {
        transform: none;
    }

    .nav-link.active {
        border-left: 0;
        border-bottom: 3px solid var(--accent-cyan);
    }

    .theme-toggle-wrap {
        padding: 10px 0;
    }

    .theme-toggle {
        max-width: 260px;
        margin: 0 auto;
        padding: 10px 12px;
    }

    .sidebar-footer {
        padding-top: 10px;
    }

    .sidebar-footer .user-profile {
        max-width: 320px;
        margin: 0 auto;
    }

    .user-profile img {
        width: 34px;
        height: 34px;
    }

    .admin-main {
        margin-left: 0;
        padding: 22px 16px 28px;
    }

    .content-header {
        align-items: stretch;
        gap: 14px;
        margin-bottom: 22px;
    }

    .header-title h1 {
        font-size: 1.35rem;
    }

    .header-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-actions .input-group {
        width: 100%;
    }

    .header-actions .btn-premium,
    .header-actions > .btn-premium {
        justify-content: center;
        flex: 1 1 180px;
    }

    .stats-grid,
    .content-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 20px;
    }

    .stat-card,
    .card-premium {
        border-radius: 16px;
        padding: 18px;
    }

    .card-header {
        align-items: flex-start;
        gap: 10px;
        flex-wrap: wrap;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .premium-table {
        min-width: 720px;
    }

    .admin-modal {
        border-radius: 16px;
    }

    .modal-dialog {
        margin: 12px;
    }
}

@media (max-width: 480px) {
    .admin-sidebar {
        padding: 14px 12px;
    }

    .sidebar-logo {
        justify-content: flex-start;
        margin-bottom: 10px;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .admin-sidebar .nav-menu,
    .admin-sidebar .theme-toggle-wrap,
    .admin-sidebar .sidebar-footer {
        display: none;
    }

    .admin-sidebar.mobile-menu-open .nav-menu,
    .admin-sidebar.mobile-menu-open .theme-toggle-wrap,
    .admin-sidebar.mobile-menu-open .sidebar-footer {
        display: flex;
    }

    .admin-sidebar.mobile-menu-open .nav-menu {
        flex-direction: column;
        gap: 6px;
        overflow: visible;
        padding: 80px 0 10px;
    }

    .nav-link {
        min-width: 100%;
        justify-content: flex-start;
        gap: 10px;
    }

    .nav-link span,
    .user-profile .user-info {
        display: block;
    }

    .nav-link i {
        width: 22px;
    }

    .admin-main {
        padding: 18px 12px 24px;
    }

    .header-title h1 {
        font-size: 1.22rem;
    }

    .header-title p {
        font-size: 0.78rem;
    }

    .btn-premium {
        width: 100%;
        justify-content: center;
    }

    .stat-card,
    .card-premium {
        padding: 16px;
    }

    .premium-table {
        min-width: 680px;
    }

    .modal-body,
    .modal-header,
    .modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        position: sticky;
        top: 0;
        overflow: visible;
        z-index: 1200;
    }

    .sidebar-logo {
        justify-content: flex-start;
        margin-bottom: 0;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }

    .admin-sidebar .nav-menu,
    .admin-sidebar .theme-toggle-wrap,
    .admin-sidebar .sidebar-footer {
        position: fixed;
        left: 0;
        width: min(84vw, 320px);
        background: var(--secondary-bg);
        border-right: 1px solid var(--glass-border);
        transform: translateX(-105%);
        transition: transform 0.28s ease;
        z-index: 1202;
    }

    .admin-sidebar .nav-menu {
        top: 0;
        height: calc(100vh - 142px);
        display: flex;
        flex-direction: column;
        gap: 6px;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 88px 16px 14px;
        scrollbar-width: thin;
    }

    .admin-sidebar .theme-toggle-wrap {
        top: calc(100vh - 142px);
        padding: 10px 16px 8px;
    }

    .admin-sidebar .sidebar-footer {
        top: calc(100vh - 76px);
        height: 76px;
        padding: 8px 16px 14px;
    }

    .admin-sidebar.mobile-menu-open .nav-menu,
    .admin-sidebar.mobile-menu-open .theme-toggle-wrap,
    .admin-sidebar.mobile-menu-open .sidebar-footer {
        display: flex;
        transform: translateX(0);
    }

    .admin-sidebar.mobile-menu-open .sidebar-logo {
        position: fixed;
        top: 0;
        left: 0;
        width: min(84vw, 320px);
        height: 72px;
        margin: 0;
        padding: 14px 16px;
        background: var(--secondary-bg);
        border-right: 1px solid var(--glass-border);
        z-index: 1203;
    }

    .admin-sidebar.mobile-menu-open .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.58);
        z-index: 1201;
    }

    .nav-item {
        flex: 0 0 auto;
        width: 100%;
    }

    .nav-link {
        min-width: 100%;
        justify-content: flex-start;
    }

    .nav-link.active {
        border-left: 4px solid var(--accent-cyan);
        border-bottom: 0;
    }

    .theme-toggle {
        max-width: none;
        margin: 0;
    }

    .sidebar-footer .user-profile {
        max-width: none;
        margin: 0;
    }

    .admin-main {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .stats-grid,
    .content-grid {
        width: 100%;
        max-width: 100%;
        grid-template-columns: minmax(0, 1fr);
    }

    .stat-card,
    .card-premium {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .table-responsive {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .premium-table {
        min-width: 560px;
    }

    #onboardingQueue .user-profile {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    #onboardingQueue .user-profile .d-flex.gap-2 {
        margin-left: 46px;
    }
}

@media (max-width: 480px) {
    .premium-table {
        min-width: 520px;
    }

    .premium-table th,
    .premium-table td {
        padding: 10px 12px;
        font-size: 0.78rem;
    }

    .card-header h2 {
        font-size: 1.05rem;
    }

    .mobile-menu-toggle {
        display: inline-flex !important;
    }

    .admin-sidebar .nav-menu,
    .admin-sidebar .theme-toggle-wrap,
    .admin-sidebar .sidebar-footer {
        position: fixed;
        left: 0;
        width: min(84vw, 320px);
        display: flex;
        background: var(--secondary-bg);
        border-right: 1px solid var(--glass-border);
        transform: translateX(-105%);
        transition: transform 0.28s ease;
        z-index: 1202;
    }

    .admin-sidebar .nav-menu {
        top: 0;
        height: calc(100vh - 142px);
        display: flex;
        flex-direction: column;
        gap: 6px;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 88px 16px 14px;
        scrollbar-width: thin;
    }

    .admin-sidebar .theme-toggle-wrap {
        top: calc(100vh - 142px);
        padding: 10px 16px 8px;
    }

    .admin-sidebar .sidebar-footer {
        top: calc(100vh - 76px);
        height: 76px;
        padding: 8px 16px 14px;
    }

    .admin-sidebar.mobile-menu-open .nav-menu,
    .admin-sidebar.mobile-menu-open .theme-toggle-wrap,
    .admin-sidebar.mobile-menu-open .sidebar-footer {
        transform: translateX(0);
    }

    .admin-sidebar.mobile-menu-open .sidebar-logo {
        position: fixed;
        top: 0;
        left: 0;
        width: min(84vw, 320px);
        height: 72px;
        margin: 0;
        padding: 14px 16px;
        background: var(--secondary-bg);
        border-right: 1px solid var(--glass-border);
        z-index: 1203;
    }

    .admin-sidebar.mobile-menu-open .sidebar-backdrop {
        display: block !important;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.58);
        z-index: 1201;
    }

    .admin-sidebar.mobile-menu-open .nav-link span,
    .admin-sidebar.mobile-menu-open .sidebar-logo span,
    .admin-sidebar.mobile-menu-open .user-profile .user-info {
        display: block;
    }
}
