﻿@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');

:root {
    /* Brand Colors Extracted from Logo */
    --brand-brown: #6A5844; /* Primary text and dark accents */
    --brand-green: #818C45; /* Action items, active states */
    --brand-sand-light: #EBE5D9; /* Backgrounds, hover states */
    --brand-sand-dark: #C6B38E; /* Borders, secondary accents */
    /* Layout Variables */
    --admin-bg: #FDFCFB; /* Very subtle warm off-white */
    --admin-surface: #FFFFFF;
    --admin-text-main: #2D241E;
    --admin-text-muted: #8A7E72;
    --admin-border: #E8E2D5;
    --sidebar-width: 280px;
    --topbar-height: 72px;
    --transition-speed: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(106, 88, 68, 0.04);
    --shadow-md: 0 4px 12px rgba(106, 88, 68, 0.08);
    --shadow-lg: 0 12px 24px rgba(106, 88, 68, 0.12);
}

body {
    background-color: var(--admin-bg);
    color: var(--admin-text-main);
    font-family: 'Cairo', sans-serif;
    margin: 0;
    overflow-x: hidden;
    direction: rtl;
}

/* --- Split Screen Login --- */
.login-split-wrapper {
    display: flex;
    min-height: 100vh;
}

.login-side-image {
    flex: 1;
    background: linear-gradient(135deg, rgba(129, 140, 69, 0.9), rgba(106, 88, 68, 0.9)), url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?q=80&w=2070') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: white;
}

.login-side-form {
    width: 100%;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    background: var(--admin-surface);
}

/* --- Form Controls & Buttons --- */
.form-control-premium {
    background-color: var(--admin-bg);
    border: 1px solid var(--admin-border);
    color: var(--admin-text-main);
    border-radius: 0.5rem;
    transition: var(--transition-speed);
}

    .form-control-premium:focus {
        background-color: var(--admin-surface);
        border-color: var(--brand-green);
        box-shadow: 0 0 0 4px rgba(129, 140, 69, 0.15);
    }

.btn-brand {
    background-color: var(--brand-green);
    color: white;
    border: none;
    transition: var(--transition-speed);
}

    .btn-brand:hover {
        background-color: #6d7739;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(129, 140, 69, 0.2);
    }

/* --- Sidebar Navigation --- */
.admin-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--admin-surface);
    border-left: 1px solid var(--admin-border);
    z-index: 1040;
    transition: transform var(--transition-speed);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.sidebar-brand {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--admin-border);
}

    .sidebar-brand img {
        max-height: 45px;
        width: auto;
    }

.sidebar-nav {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem 1rem;
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-sand-dark);
    margin: 1.5rem 1rem 0.5rem;
    letter-spacing: 0.5px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.25rem;
    color: var(--admin-text-muted);
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-speed);
    margin-bottom: 0.25rem;
}

    .nav-link i {
        width: 24px;
        font-size: 1.1rem;
    }

    .nav-link:hover {
        background: var(--brand-sand-light);
        color: var(--brand-brown);
    }

    .nav-link.active {
        background: rgba(129, 140, 69, 0.1);
        color: var(--brand-green);
        font-weight: 700;
    }

/* --- Topbar & Main Wrapper --- */
.admin-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: var(--sidebar-width);
    height: var(--topbar-height);
    background: var(--admin-surface);
    border-bottom: 1px solid var(--admin-border);
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    transition: right var(--transition-speed);
}

.admin-main {
    margin-top: var(--topbar-height);
    margin-right: var(--sidebar-width);
    padding: 2rem;
    transition: margin-right var(--transition-speed);
    min-height: calc(100vh - var(--topbar-height));
}

.premium-card {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-speed);
}

/* Responsive */
@media (max-width: 991px) {
    .login-side-image {
        display: none;
    }

    .login-side-form {
        max-width: 100%;
        padding: 2rem;
    }

    .admin-sidebar {
        transform: translateX(100%);
    }

        .admin-sidebar.show {
            transform: translateX(0);
        }

    .admin-topbar {
        right: 0;
        padding: 0 1rem;
    }

    .admin-main {
        margin-right: 0;
        padding: 1rem;
    }
}



.kpi-card {
    border-right: 4px solid var(--brand-green);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .kpi-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg) !important;
    }

.kpi-icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background-color: rgba(129, 140, 69, 0.1);
    color: var(--brand-green);
    font-size: 1.25rem;
}

.table-premium th {
    background-color: var(--brand-sand-light);
    color: var(--brand-brown);
    font-weight: 700;
    border-bottom: 2px solid var(--brand-sand-dark);
    padding: 1rem;
}

.table-premium td {
    vertical-align: middle;
    padding: 1rem;
    color: var(--admin-text-main);
    border-bottom: 1px solid var(--admin-border);
}

.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-pending {
    background-color: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.status-completed {
    background-color: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}


.admin-table th {
    background-color: var(--brand-sand-light);
    color: var(--brand-brown);
    border-bottom: 2px solid var(--brand-sand-dark);
    padding: 1rem;
    white-space: nowrap;
}

.admin-table td {
    vertical-align: middle;
    padding: 1rem;
    border-bottom: 1px solid var(--admin-border);
}

.cat-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid var(--admin-border);
    background-color: #fff;
    padding: 2px;
}

.image-upload-wrapper {
    border: 2px dashed var(--admin-border);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    background-color: var(--admin-bg);
    transition: all 0.3s ease;
}

    .image-upload-wrapper:hover {
        border-color: var(--brand-green);
        background-color: rgba(129, 140, 69, 0.05);
    }

.lang-tabs .nav-link {
    color: var(--admin-text-muted);
    font-weight: 600;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

    .lang-tabs .nav-link:hover {
        color: var(--brand-brown);
    }

    .lang-tabs .nav-link.active {
        color: var(--brand-green);
        background: none;
        border-bottom: 2px solid var(--brand-green);
    }


.image-upload-wrapper {
    border: 2px dashed var(--admin-border);
    border-radius: 0.75rem;
    padding: 3rem 2rem;
    text-align: center;
    background-color: var(--admin-bg);
    transition: all 0.3s ease;
}

    .image-upload-wrapper:hover {
        border-color: var(--brand-green);
        background-color: rgba(129, 140, 69, 0.05);
    }

.lang-tabs .nav-link {
    color: var(--admin-text-muted);
    font-weight: 600;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

    .lang-tabs .nav-link:hover {
        color: var(--brand-brown);
    }

    .lang-tabs .nav-link.active {
        color: var(--brand-green);
        background: none;
        border-bottom: 2px solid var(--brand-green);
    }

.preview-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid var(--admin-border);
    margin-bottom: 1rem;
}


.admin-table th {
    background-color: var(--brand-sand-light);
    color: var(--brand-brown);
    border-bottom: 2px solid var(--brand-sand-dark);
    padding: 1rem;
    white-space: nowrap;
}

.admin-table td {
    vertical-align: middle;
    padding: 1rem;
    border-bottom: 1px solid var(--admin-border);
}

.cat-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid var(--admin-border);
    background-color: #fff;
    padding: 2px;
}

/* Form Styles */
.image-upload-wrapper {
    border: 2px dashed var(--admin-border);
    border-radius: 0.75rem;
    padding: 3rem 2rem;
    text-align: center;
    background-color: var(--admin-bg);
    transition: all 0.3s ease;
}

    .image-upload-wrapper:hover {
        border-color: var(--brand-green);
        background-color: rgba(129, 140, 69, 0.05);
    }

.lang-tabs .nav-link {
    color: var(--admin-text-muted);
    font-weight: 600;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

    .lang-tabs .nav-link:hover {
        color: var(--brand-brown);
    }

    .lang-tabs .nav-link.active {
        color: var(--brand-green);
        background: none;
        border-bottom: 2px solid var(--brand-green);
    }

.preview-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid var(--admin-border);
    margin-bottom: 1rem;
}

.admin-table th {
    background-color: var(--brand-sand-light);
    color: var(--brand-brown);
    border-bottom: 2px solid var(--brand-sand-dark);
    padding: 1rem;
    white-space: nowrap;
}

.admin-table td {
    vertical-align: middle;
    padding: 1rem;
    border-bottom: 1px solid var(--admin-border);
}

.product-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid var(--admin-border);
    background-color: #fff;
    padding: 2px;
}

.image-upload-wrapper {
    border: 2px dashed var(--admin-border);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    background-color: var(--admin-bg);
    transition: all 0.3s ease;
}

    .image-upload-wrapper:hover {
        border-color: var(--brand-green);
        background-color: rgba(129, 140, 69, 0.05);
    }

.lang-tabs .nav-link {
    color: var(--admin-text-muted);
    font-weight: 600;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

    .lang-tabs .nav-link:hover {
        color: var(--brand-brown);
    }

    .lang-tabs .nav-link.active {
        color: var(--brand-green);
        background: none;
        border-bottom: 2px solid var(--brand-green);
    }

.preview-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 0.5rem;
    border: 1px solid var(--admin-border);
    margin-bottom: 1rem;
    background-color: #fff;
}


.premium-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(253, 252, 251, 0.7); /* Brand Sand Light with opacity */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.premium-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(129, 140, 69, 0.2); /* Brand Green faint */
    border-top: 4px solid var(--brand-green); /* Brand Green solid */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--admin-border);
}

    .gallery-item img {
        width: 100%;
        height: 70px;
        object-fit: cover;
        display: block;
    }

    .gallery-item .btn-delete {
        position: absolute;
        top: 2px;
        right: 2px;
        background: rgba(220, 53, 69, 0.9);
        color: white;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.6rem;
        text-decoration: none;
        transition: transform 0.2s;
    }

        .gallery-item .btn-delete:hover {
            transform: scale(1.1);
        }


.admin-table th {
    background-color: var(--brand-sand-light);
    color: var(--brand-brown);
    border-bottom: 2px solid var(--brand-sand-dark);
    padding: 1rem;
    white-space: nowrap;
}

.admin-table td {
    vertical-align: middle;
    padding: 1rem;
    border-bottom: 1px solid var(--admin-border);
}

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
}

.status-1 {
    background-color: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}
/* Pending */
.status-2 {
    background-color: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}
/* Processing */
.status-3 {
    background-color: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
/* Completed */
.status-4 {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
/* Canceled */

.invoice-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid var(--admin-border);
    overflow: hidden;
}

.invoice-header {
    background-color: var(--brand-sand-light);
    padding: 1.5rem;
    border-bottom: 2px solid var(--brand-sand-dark);
}

.data-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--admin-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.data-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand-brown);
    margin: 0;
}

.product-thumb-sm {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid var(--admin-border);
}

/* --- Enhanced Order Details UI --- */
.back-btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--brand-sand-light);
    color: var(--brand-brown);
    border: 1px solid var(--admin-border);
    transition: all 0.3s ease;
}

    .back-btn-premium:hover {
        background-color: var(--brand-brown);
        color: white;
        transform: translateX(5px);
    }

.order-detail-card {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    overflow: hidden;
    height: 100%;
}

.order-detail-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.icon-customer {
    background-color: rgba(180, 83, 9, 0.08);
    color: #b45309;
}

.icon-finance {
    background-color: rgba(21, 128, 61, 0.08);
    color: #15803d;
}

.icon-items {
    background-color: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
}

.data-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.data-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.product-thumb-enhanced {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 0.75rem;
    border: 1px solid var(--admin-border);
    padding: 3px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
}

.product-cell-wrapper {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.total-highlight-box {
    background: linear-gradient(135deg, rgba(129, 140, 69, 0.1) 0%, rgba(129, 140, 69, 0.02) 100%);
    border-radius: 0.75rem;
    border: 1px solid rgba(129, 140, 69, 0.2);
}


/* --- Filter & Empty State Enhancements --- */
.filter-bar {
    background-color: #fff;
    border: 1px solid var(--admin-border);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.empty-state-card {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #fff;
    border-radius: 1rem;
    border: 1px dashed #d1d5db;
}

.empty-state-icon {
    font-size: 3.5rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.quick-filter-btn {
    color: var(--admin-text-muted);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
}

    .quick-filter-btn:hover {
        background-color: rgba(0,0,0,0.03);
        color: var(--brand-brown);
    }

    .quick-filter-btn.active {
        background-color: rgba(129, 140, 69, 0.1);
        color: var(--brand-green);
        border-color: rgba(129, 140, 69, 0.2);
    }


.admin-table th {
    background-color: var(--brand-sand-light);
    color: var(--brand-brown);
    border-bottom: 2px solid var(--brand-sand-dark);
    padding: 1rem;
    white-space: nowrap;
}

.admin-table td {
    vertical-align: middle;
    padding: 1rem;
    border-bottom: 1px solid var(--admin-border);
}

/* Advanced Status Badges */
.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.status-1 {
    background-color: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}
/* New */
.status-2 {
    background-color: #f3e8ff;
    color: #7e22ce;
    border: 1px solid #d8b4fe;
}
/* Pricing/Review */
.status-3 {
    background-color: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}
/* Quoted */
.status-4 {
    background-color: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
/* Converted */
.status-5 {
    background-color: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
/* Rejected */

/* Deal Desk Layout */
.deal-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid var(--admin-border);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    height: 100%;
}

.deal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #fafafa;
    border-radius: 1rem 1rem 0 0;
}

.deal-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.data-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.data-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.price-calculator-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px dashed var(--admin-border);
    border-radius: 1rem;
    padding: 1.5rem;
}

/* Filters & Empty State */
.filter-bar {
    background-color: #fff;
    border: 1px solid var(--admin-border);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.empty-state-card {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #fff;
    border-radius: 1rem;
    border: 1px dashed #d1d5db;
}

.empty-state-icon {
    font-size: 3.5rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.quick-filter-btn {
    color: var(--admin-text-muted);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
}

    .quick-filter-btn:hover {
        background-color: rgba(0,0,0,0.03);
        color: var(--brand-brown);
    }

    .quick-filter-btn.active {
        background-color: rgba(129, 140, 69, 0.1);
        color: var(--brand-green);
        border-color: rgba(129, 140, 69, 0.2);
    }

.back-btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--brand-sand-light);
    color: var(--brand-brown);
    border: 1px solid var(--admin-border);
    transition: all 0.3s ease;
}

    .back-btn-premium:hover {
        background-color: var(--brand-brown);
        color: white;
        transform: translateX(5px);
    }



:root {
    /* Enterprise Brand Palette */
    --brand-brown: #5C4B41;
    --brand-green: #818C45;
    --brand-sand-light: #F4F1EA;
    --brand-sand-dark: #E2DCD0;
    --admin-bg: #F8F9FA;
    --admin-border: rgba(92, 75, 65, 0.08);
    --admin-text-muted: #8A8581;
    --sidebar-width: 280px;
    --topbar-height: 70px;
    --transition-speed: 0.3s;
}

body {
    background-color: var(--admin-bg);
    font-family: 'Cairo', 'Tajawal', sans-serif; /* Premium Arabic Typography */
    overflow-x: hidden;
}

/* --- Loader Overlay --- */
.premium-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.premium-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--brand-sand-dark);
    border-top: 4px solid var(--brand-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- Layout Architecture --- */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* --- Sidebar Styling --- */
.admin-sidebar {
    width: var(--sidebar-width);
    background-color: #ffffff;
    border-left: 1px solid var(--admin-border);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed) ease;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 1040;
    box-shadow: -4px 0 15px rgba(0,0,0,0.02);
}

.sidebar-brand {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--admin-border);
    padding: 0 1.5rem;
}

    .sidebar-brand img {
        max-height: 40px;
        object-fit: contain;
    }

.sidebar-scroll-area {
    overflow-y: auto;
    flex-grow: 1;
    padding: 1.5rem 1rem;
}

    .sidebar-scroll-area::-webkit-scrollbar {
        width: 5px;
    }

    .sidebar-scroll-area::-webkit-scrollbar-thumb {
        background: var(--brand-sand-dark);
        border-radius: 10px;
    }

.nav-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--admin-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 1.5rem 0 0.5rem 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--brand-brown);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    text-decoration: none;
    border-right: 3px solid transparent;
}

    .nav-link i {
        font-size: 1.1rem;
        width: 24px;
        text-align: center;
        color: var(--admin-text-muted);
        transition: color 0.2s ease;
    }

    .nav-link:hover {
        background-color: var(--brand-sand-light);
        transform: translateX(-4px);
    }

        .nav-link:hover i {
            color: var(--brand-green);
        }

    /* The Active State */
    .nav-link.active {
        background-color: var(--brand-sand-light);
        color: var(--brand-green);
        border-right: 3px solid var(--brand-green);
    }

        .nav-link.active i {
            color: var(--brand-green);
        }

/* --- Topbar Styling --- */
.admin-main-wrapper {
    flex-grow: 1;
    margin-right: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin var(--transition-speed) ease;
}

.admin-topbar {
    height: var(--topbar-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px); /* Premium Glass Effect */
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* --- Content Area --- */
.admin-content {
    padding: 2rem;
    flex-grow: 1;
}

/* Mobile Responsiveness */
@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(100%);
    }
        /* Hide off-screen to the right */
        .admin-sidebar.show {
            transform: translateX(0);
        }

    .admin-main-wrapper {
        margin-right: 0;
    }

    .admin-topbar, .admin-content {
        padding: 1rem;
    }

    /* Mobile Overlay */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 1035;
        display: none;
    }

        .sidebar-overlay.show {
            display: block;
        }
}


hover-row:hover {
    background-color: rgba(92, 75, 65, 0.02) !important;
    cursor: pointer;
    transition: 0.2s;
}


/* --- Premium SaaS UI Customization --- */
.premium-card {
    background: #ffffff;
    border-radius: 1.25rem;
    border: none;
    box-shadow: 0 8px 24px rgba(92, 75, 65, 0.04);
}

.premium-card-header {
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
}

.premium-card-body {
    padding: 1.5rem;
}

.premium-input {
    background-color: #F8F9FA;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: #1f2937;
    transition: all 0.3s ease;
}

    .premium-input:focus {
        background-color: #ffffff;
        border-color: var(--brand-green);
        box-shadow: 0 0 0 4px rgba(129, 140, 69, 0.1);
        outline: none;
    }

.premium-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--admin-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.saas-table {
    margin: 0;
    width: 100%;
}

    .saas-table th {
        background-color: transparent;
        color: var(--admin-text-muted);
        font-weight: 700;
        font-size: 0.75rem;
        letter-spacing: 0.5px;
        padding: 1rem 1.25rem;
        border-bottom: 2px solid rgba(0,0,0,0.04);
    }

    .saas-table td {
        vertical-align: middle;
        padding: 1.25rem;
        border-bottom: 1px solid rgba(0,0,0,0.02);
        transition: background-color 0.2s ease;
    }

    .saas-table tr:hover td {
        background-color: rgba(129, 140, 69, 0.02);
    }

.action-btn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background-color: #F8F9FA;
    border: 1px solid rgba(0,0,0,0.05);
    color: var(--admin-text-muted);
    transition: all 0.2s;
}

    .action-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
        color: var(--brand-brown);
    }

    .action-btn.btn-toggle-active {
        color: #10b981;
        background-color: #ecfdf5;
        border-color: #a7f3d0;
    }

    .action-btn.btn-toggle-inactive {
        color: #ef4444;
        background-color: #fef2f2;
        border-color: #fecaca;
    }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.status-active {
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-inactive {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.kpi-card {
    border: none;
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .kpi-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(92, 75, 65, 0.08);
    }

.kpi-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.bg-sand-gradient {
    background: linear-gradient(135deg, var(--brand-sand-light) 0%, #ffffff 100%);
    border: 1px solid var(--admin-border);
}

.kpi-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-brown);
    margin: 0.5rem 0 0 0;
    line-height: 1.2;
}

.kpi-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--admin-text-muted);
    text-transform: uppercase;
}

.action-list-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

    .action-list-item:hover {
        background-color: rgba(129, 140, 69, 0.02);
    }

    .action-list-item:last-child {
        border-bottom: none;
    }


.master-dashboard-card {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(92, 75, 65, 0.05);
    border: 1px solid rgba(0,0,0,0.02);
}

.kpi-card {
    background: #F8F9FA;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

    .kpi-card:hover {
        background: #ffffff;
        border-color: rgba(129, 140, 69, 0.2);
        box-shadow: 0 10px 20px rgba(129, 140, 69, 0.05);
        transform: translateY(-3px);
    }

.kpi-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.kpi-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-brown);
    margin: 0.5rem 0 0 0;
    line-height: 1.2;
}

.kpi-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--admin-text-muted);
    text-transform: uppercase;
}

.inner-panel {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid rgba(0,0,0,0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.inner-panel-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    background-color: rgba(248, 249, 250, 0.5);
}

.action-list-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

    .action-list-item:hover {
        background-color: rgba(129, 140, 69, 0.02);
    }

    .action-list-item:last-child {
        border-bottom: none;
    }

.best-seller-badge {
    background-color: rgba(129, 140, 69, 0.1);
    color: var(--brand-green);
    font-weight: 800;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
}

.avatar-corporate {
    background: linear-gradient(135deg, var(--brand-brown), #3E322C);
    color: white;
}

.avatar-employee {
    background: linear-gradient(135deg, var(--brand-green), #687334);
    color: white;
    font-weight: bold;
}

/* Premium Toast Customization */
.premium-toast-popup {
    border-radius: 12px !important;
    padding: 12px 20px !important;
    box-shadow: 0 10px 40px rgba(92, 75, 65, 0.12) !important;
    font-family: 'Cairo', sans-serif !important; /* أو الخط الخاص بك */
}

.swal2-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--brand-brown) !important;
}

.multi-select-box {
    min-height: 250px;
    border-radius: 1rem;
    padding: 1rem;
}

    .multi-select-box option {
        padding: 10px;
        margin-bottom: 4px;
        border-radius: 8px;
        cursor: pointer;
        transition: background-color 0.2s;
    }

        .multi-select-box option:checked {
            background-color: var(--brand-green, #818C45) !important;
            color: white !important;
        }


.custom-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.custom-card-header {
    background-color: #fff;
    border-bottom: 2px solid var(--brand-brown);
    border-radius: 12px 12px 0 0 !important;
    padding: 1.25rem 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    border: 1px solid #dee2e6;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--brand-brown);
        box-shadow: 0 0 0 0.25rem rgba(139, 90, 43, 0.25);
    }

.btn-brand {
    background-color: var(--brand-brown);
    color: white;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    border: none;
    transition: 0.3s;
}

    .btn-brand:hover {
        background-color: var(--brand-green);
        color: white;
    }

.nav-pills .nav-link {
    color: #6c757d;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
}

    .nav-pills .nav-link.active {
        background-color: var(--brand-green);
        color: white;
    }

.grid-premium {
    border-collapse: separate;
    border-spacing: 0 8px;
}

    .grid-premium th {
        background-color: #f8f9fa;
        border: none;
        color: #495057;
        font-weight: 700;
        padding: 1rem;
    }

    .grid-premium td {
        background-color: #fff;
        border: none;
        border-top: 1px solid #f1f3f5;
        border-bottom: 1px solid #f1f3f5;
        padding: 1rem;
        vertical-align: middle;
    }

        .grid-premium td:first-child {
            border-right: 1px solid #f1f3f5;
            border-radius: 0 8px 8px 0;
        }

        .grid-premium td:last-child {
            border-left: 1px solid #f1f3f5;
            border-radius: 8px 0 0 8px;
        }


/* Enterprise Dashboard Minimalist UI */
.admin-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.admin-card-header {
    background-color: transparent;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
}

.admin-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 0.5rem;
}

.admin-input {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.01);
    transition: border-color 0.15s;
}

    .admin-input:focus {
        border-color: var(--brand-brown, #8B5A2B);
        box-shadow: 0 0 0 3px rgba(139, 90, 43, 0.1);
        outline: none;
    }

/* GridView Styling */
.enterprise-grid {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

    .enterprise-grid th {
        background-color: #f8fafc;
        color: #64748b;
        font-weight: 600;
        font-size: 0.85rem;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid #e2e8f0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .enterprise-grid td {
        padding: 1rem 1.25rem;
        vertical-align: middle;
        border-bottom: 1px solid #f1f5f9;
        color: #1e293b;
        font-size: 0.95rem;
    }

    .enterprise-grid tr:hover td {
        background-color: #f8fafc;
    }

/* Pager Styling */
.grid-pager {
    background-color: #ffffff;
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

    .grid-pager table {
        margin: 0 auto;
    }

    .grid-pager td {
        padding: 0;
        border: none;
    }

    .grid-pager a, .grid-pager span {
        display: inline-block;
        min-width: 36px;
        padding: 0.4rem 0.75rem;
        margin: 0 0.2rem;
        border-radius: 6px;
        font-weight: 600;
        font-size: 0.9rem;
        text-decoration: none;
        transition: all 0.2s;
        border: 1px solid #cbd5e1;
        color: #475569;
        background: #fff;
    }

        .grid-pager a:hover {
            background-color: #f1f5f9;
            border-color: #94a3b8;
            color: #0f172a;
        }

    .grid-pager span {
        background-color: var(--brand-brown, #8B5A2B);
        color: #ffffff;
        border-color: var(--brand-brown, #8B5A2B);
    }

/* Badges & Buttons */
.pin-badge {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    letter-spacing: 1px;
}

.btn-modern-primary {
    background-color: var(--brand-brown, #8B5A2B);
    color: white;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.6rem 1.5rem;
    border: none;
}

    .btn-modern-primary:hover {
        background-color: #6b4421;
        color: white;
    }

.nav-pills .nav-link {
    color: #64748b;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
}

    .nav-pills .nav-link.active {
        background-color: var(--brand-brown, #8B5A2B);
        color: white;
    }





/* ==========================================================================
   Bootstrap switches inside asp:CheckBox
   --------------------------------------------------------------------------
   asp:CheckBox renders <span class="..."><input type="checkbox"></span>, so
   the input is a grandchild of .form-check rather than a direct child.
   Bootstrap's .form-switch selectors target the direct child, never match,
   and the browser's native checkbox is drawn on top of the switch track -
   which is the doubled control on screen.

   These rules re-apply the switch styling one level deeper.
   ========================================================================== */

.form-check.form-switch > span {
    display: contents;
}

.form-switch .form-check-input,
.form-switch span > .form-check-input {
    width: 2.5em;
    height: 1.35em;
    margin-top: .1em;
    background-color: #DDD6C9;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
    background-position: right center;
    background-repeat: no-repeat;
    background-size: contain;
    border: none;
    border-radius: 2em;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: background-position .18s ease-in-out, background-color .18s ease;
}

    .form-switch .form-check-input:checked,
    .form-switch span > .form-check-input:checked {
        background-color: var(--brand-green, #818C45);
        background-position: left center;
    }

    .form-switch .form-check-input:focus,
    .form-switch span > .form-check-input:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(129, 140, 69, .16);
    }

/* Bootstrap reserves space for a checkbox it never draws here */
.form-check.form-switch {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding-right: 0;
    padding-left: 0;
}

    .form-check.form-switch .form-check-label {
        margin: 0;
        cursor: pointer;
    }


/* ==========================================================================
   Sidebar  -  corrected dark treatment
   --------------------------------------------------------------------------
   Replaces the previous dark block entirely. Four faults it fixes:

   1. A horizontal scrollbar. The marker sat at right:-.7rem, outside the
      element box, and overflow:visible let it push the column wider. It now
      sits inside the padding.

   2. Wrapped labels. Long names broke onto a second line, so rows had
      different heights and the column lost its rhythm. Names truncate.

   3. Grey dots down the right edge - the browser's default list bullets,
      invisible on white and obvious on brown.

   4. The logo disappeared into the panel.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shell
   -------------------------------------------------------------------------- */
.admin-sidebar {
    background: linear-gradient(180deg, #453A2C 0%, #382F24 100%) !important;
    border-left: 1px solid rgba(198, 179, 142, .14) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important; /* nothing may widen the rail */
}

.sidebar-brand {
    flex: 0 0 auto !important;
    background: #FFFFFF !important;
    border-bottom: 1px solid rgba(198, 179, 142, .18) !important;
    padding: 1.1rem 1.25rem !important;
}

    .sidebar-brand img {
        max-height: 44px !important;
        width: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }

.sidebar-scroll-area {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important; /* kills the horizontal bar */
    overscroll-behavior: contain;
}

/* --------------------------------------------------------------------------
   Lists - remove every default bullet
   -------------------------------------------------------------------------- */
.admin-sidebar .sidebar-nav,
.admin-sidebar .sidebar-nav ul,
.admin-sidebar .sidebar-nav li {
    list-style: none !important;
    list-style-type: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

    .admin-sidebar .sidebar-nav li::marker {
        content: none !important;
    }

.admin-sidebar .sidebar-nav {
    padding: .85rem .7rem 1.5rem !important;
}

    /* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */
    .admin-sidebar .sidebar-nav .nav-label {
        display: flex !important;
        align-items: center !important;
        gap: .55rem !important;
        margin: 1.3rem .5rem .4rem !important;
        padding: 0 !important;
        background: none !important;
        font-size: .64rem !important;
        font-weight: 800 !important;
        letter-spacing: .06em !important;
        color: rgba(198, 179, 142, .62) !important;
        white-space: nowrap !important;
    }

    .admin-sidebar .sidebar-nav .nav-section:first-child .nav-label {
        margin-top: .2rem !important;
    }

    .admin-sidebar .sidebar-nav .nav-label::after {
        content: "" !important;
        flex: 1 1 auto !important;
        height: 1px !important;
        background: linear-gradient(to left, rgba(198, 179, 142, .22), transparent) !important;
    }

    /* --------------------------------------------------------------------------
   Rows
   -------------------------------------------------------------------------- */
    .admin-sidebar .sidebar-nav .nav-link {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        gap: .65rem !important;
        height: 42px !important; /* fixed, so every row matches */
        padding: 0 .65rem !important;
        margin: 0 0 .12rem !important;
        border: none !important;
        border-radius: 10px !important;
        background: transparent !important;
        color: rgba(238, 232, 222, .70) !important;
        font-size: .845rem !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        overflow: hidden !important;
        transition: background-color .15s ease, color .15s ease !important;
    }

        .admin-sidebar .sidebar-nav .nav-link .nav-icon {
            flex: 0 0 auto !important;
            width: 28px !important;
            height: 28px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            border-radius: 8px !important;
            background: rgba(255, 255, 255, .05) !important;
            color: rgba(198, 179, 142, .80) !important;
            font-size: .8rem !important;
            transition: background-color .15s ease, color .15s ease !important;
        }

            .admin-sidebar .sidebar-nav .nav-link .nav-icon i {
                margin: 0 !important;
                width: auto !important;
                font-size: inherit !important;
                color: inherit !important;
                opacity: 1 !important;
            }

        /* One line, always. A wrapped label is what made the rows uneven. */
        .admin-sidebar .sidebar-nav .nav-link .nav-text {
            flex: 1 1 auto !important;
            min-width: 0 !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            white-space: nowrap !important;
            line-height: 1.2 !important;
        }

        /* Inside the box, so it can never widen the column */
        .admin-sidebar .sidebar-nav .nav-link .nav-marker {
            position: absolute !important;
            top: 50% !important;
            right: 0 !important;
            left: auto !important;
            transform: translateY(-50%) !important;
            width: 3px !important;
            height: 0 !important;
            border-radius: 0 3px 3px 0 !important;
            background: #B4C062 !important;
            transition: height .2s cubic-bezier(.2, .8, .3, 1) !important;
        }

        /* --------------------------------------------------------------------------
   States
   -------------------------------------------------------------------------- */
        .admin-sidebar .sidebar-nav .nav-link:hover {
            background: rgba(255, 255, 255, .055) !important;
            color: #FFFFFF !important;
        }

            .admin-sidebar .sidebar-nav .nav-link:hover .nav-icon {
                background: rgba(198, 179, 142, .16) !important;
                color: #E8DCC8 !important;
            }

        /* No outline, no glow - a soft wash and one lit icon is enough */
        .admin-sidebar .sidebar-nav .nav-link.active {
            background: rgba(180, 192, 98, .13) !important;
            color: #FFFFFF !important;
            font-weight: 700 !important;
            box-shadow: none !important;
        }

            .admin-sidebar .sidebar-nav .nav-link.active .nav-icon {
                background: #8E9A4A !important;
                color: #FFFFFF !important;
                box-shadow: none !important;
            }

            .admin-sidebar .sidebar-nav .nav-link.active .nav-text {
                color: #FFFFFF !important;
            }

            .admin-sidebar .sidebar-nav .nav-link.active .nav-marker {
                height: 20px !important;
            }

        .admin-sidebar .sidebar-nav .nav-link:focus-visible {
            outline: none !important;
            box-shadow: inset 0 0 0 1px rgba(180, 192, 98, .45) !important;
        }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.sidebar-footer {
    flex: 0 0 auto !important;
    background: rgba(0, 0, 0, .14) !important;
    border-top: 1px solid rgba(198, 179, 142, .14) !important;
    padding: .75rem .85rem !important;
}

    .sidebar-footer .topbar-avatar {
        background: linear-gradient(135deg, #8E9A4A, #6E7838) !important;
    }

    .sidebar-footer .topbar-user-name {
        color: #EEE8DE !important;
    }

    .sidebar-footer .topbar-user-role {
        color: #B4C062 !important;
    }

/* --------------------------------------------------------------------------
   Workspace
   -------------------------------------------------------------------------- */
.admin-content {
    background: #FAF8F4 !important;
}

/* --------------------------------------------------------------------------
   Scrollbar - thin and quiet
   -------------------------------------------------------------------------- */
.sidebar-scroll-area {
    scrollbar-width: thin;
    scrollbar-color: rgba(198, 179, 142, .25) transparent;
}

    .sidebar-scroll-area::-webkit-scrollbar {
        width: 5px !important;
        height: 0 !important; /* no horizontal bar under any circumstance */
    }

    .sidebar-scroll-area::-webkit-scrollbar-track {
        background: transparent !important;
    }

    .sidebar-scroll-area::-webkit-scrollbar-thumb {
        background: rgba(198, 179, 142, .22) !important;
        border-radius: 5px !important;
    }

        .sidebar-scroll-area::-webkit-scrollbar-thumb:hover {
            background: rgba(198, 179, 142, .40) !important;
        }