/* ==========================================================================
   KHAQAH DAYEMIA | PORTAL DASHBOARD & AUTH SYSTEM STYLES
   Role-Based Management & Heritage Portal UI
   ========================================================================== */

:root {
    --dash-sidebar-bg: #04251d;
    --dash-sidebar-hover: #083b2f;
    --dash-sidebar-active: #0a4d3c;
    --dash-sidebar-text: #e2e8f0;
    --dash-sidebar-muted: #94a3b8;
    --dash-gold: #c5a059;
    --dash-gold-light: #dfc182;
    --dash-gold-glow: rgba(197, 160, 89, 0.25);
    --dash-primary: #0a4d3c;
    --dash-primary-dark: #063529;
    --dash-body-bg: #f4f6f8;
    --dash-card-bg: #ffffff;
    --dash-border: #e2e8f0;
    --dash-text: #1e293b;
    --dash-text-muted: #64748b;
    --dash-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --dash-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --dash-shadow-lg: 0 10px 25px -5px rgba(10, 77, 60, 0.12);
}

/* ==========================================================================
   ROLE BADGES
   ========================================================================== */
.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.badge-super-admin {
    background: linear-gradient(135deg, #78350f, #991b1b);
    color: #fef08a;
    border: 1px solid #fde047;
}

.badge-editor {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    color: #ffffff;
    border: 1px solid #7dd3fc;
}

.badge-publisher {
    background: linear-gradient(135deg, #065f46, #059669);
    color: #ecfdf5;
    border: 1px solid #6ee7b7;
}

.badge-collector {
    background: linear-gradient(135deg, #b45309, #d97706);
    color: #fffbeb;
    border: 1px solid #fcd34d;
}

.badge-user {
    background: #475569;
    color: #f8fafc;
    border: 1px solid #94a3b8;
}

/* Status pills */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status-pill.active {
    background-color: #dcfce7;
    color: #166534;
}
.status-pill.inactive {
    background-color: #fee2e2;
    color: #991b1b;
}
.status-pill.pending {
    background-color: #fef3c7;
    color: #92400e;
}

/* ==========================================================================
   AUTHENTICATION PAGES (LOGIN / REGISTER)
   ========================================================================== */
.auth-wrapper {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    background: radial-gradient(circle at 10% 20%, rgba(10, 77, 60, 0.05) 0%, rgba(244, 241, 234, 0.8) 90%);
}

.auth-card {
    background: var(--dash-card-bg);
    width: 100%;
    max-width: 480px;
    border-radius: 16px;
    box-shadow: var(--dash-shadow-lg);
    border: 1px solid rgba(197, 160, 89, 0.25);
    overflow: hidden;
    position: relative;
}

.auth-header {
    background: linear-gradient(135deg, var(--dash-sidebar-bg), var(--dash-primary));
    color: #ffffff;
    padding: 2.2rem 2rem 1.8rem;
    text-align: center;
    position: relative;
    border-bottom: 3px solid var(--dash-gold);
}

.auth-emblem {
    width: 56px;
    height: 56px;
    margin: 0 auto 0.75rem;
    background: linear-gradient(135deg, var(--dash-primary), #0a5c48);
    border: 2px solid var(--dash-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.auth-emblem svg {
    width: 28px;
    height: 28px;
    fill: var(--dash-gold);
}

.auth-header h1 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
    color: #ffffff;
    letter-spacing: 1px;
}

.auth-header p {
    font-size: 0.85rem;
    color: var(--dash-gold-light);
    margin: 0;
}

.auth-body {
    padding: 2rem;
}

/* Demo account quick selector */
.demo-accounts-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.demo-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dash-primary);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.demo-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.btn-demo-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #334155;
}

.btn-demo-pill:hover {
    border-color: var(--dash-primary);
    background: #f0fdf4;
    color: var(--dash-primary);
    transform: translateY(-1px);
}

.btn-demo-pill .role-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    background-color: #ffffff;
    color: #1e293b;
    transition: all 0.2s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--dash-primary);
    box-shadow: 0 0 0 3px rgba(10, 77, 60, 0.15);
}

.form-hint {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.btn-auth-submit {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, var(--dash-primary), var(--dash-primary-dark));
    color: #ffffff;
    border: 1px solid var(--dash-gold);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(10, 77, 60, 0.25);
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.btn-auth-submit:hover {
    background: linear-gradient(135deg, #0d5d49, #074032);
    box-shadow: 0 6px 14px rgba(10, 77, 60, 0.35);
    transform: translateY(-1px);
}

.auth-footer {
    text-align: center;
    padding-top: 1.25rem;
    margin-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: #64748b;
}

.auth-footer a {
    color: var(--dash-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   DASHBOARD LAYOUT (SIDEBAR + MAIN CONTENT)
   ========================================================================== */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--dash-body-bg);
}

.dash-sidebar {
    width: 270px;
    background-color: var(--dash-sidebar-bg);
    color: var(--dash-sidebar-text);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-right: 1px solid rgba(197, 160, 89, 0.25);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 4px 0 16px rgba(0,0,0,0.15);
}

.sidebar-brand {
    padding: 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.sidebar-brand-title {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.8px;
    line-height: 1.2;
}

.sidebar-brand-sub {
    font-size: 0.68rem;
    color: var(--dash-gold-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* User Profile card in sidebar */
.sidebar-user-card {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.user-avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dash-primary), #0a5c48);
    border: 2px solid var(--dash-gold);
    color: var(--dash-gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.sidebar-user-info {
    overflow: hidden;
}

.sidebar-user-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-title {
    font-size: 0.72rem;
    color: var(--dash-sidebar-muted);
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Nav links in sidebar */
.sidebar-menu {
    flex: 1;
    padding: 1.25rem 0.85rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.menu-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dash-sidebar-muted);
    letter-spacing: 1px;
    padding: 0.75rem 0.8rem 0.35rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    color: var(--dash-sidebar-text);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background-color: var(--dash-sidebar-hover);
    color: #ffffff;
    transform: translateX(3px);
}

.sidebar-link.active {
    background-color: var(--dash-sidebar-active);
    color: #ffffff;
    border-left: 3px solid var(--dash-gold);
    font-weight: 600;
}

.sidebar-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
}

.sidebar-link.active .sidebar-icon,
.sidebar-link:hover .sidebar-icon {
    opacity: 1;
    color: var(--dash-gold);
}

.sidebar-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-sidebar-logout {
    width: 100%;
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #fca5a5;
    padding: 0.55rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-sidebar-logout:hover {
    background: rgba(220, 38, 38, 0.3);
    color: #ffffff;
}

/* ==========================================================================
   DASHBOARD MAIN WORKSPACE
   ========================================================================== */
.dash-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-x: hidden;
}

.dash-topbar {
    background-color: #ffffff;
    padding: 0.85rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--dash-border);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--dash-shadow-sm);
}

.dash-topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--dash-primary);
}

.dash-topbar-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dash-primary);
    margin: 0;
}

.dash-topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-view-site {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dash-primary);
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-view-site:hover {
    background-color: #dcfce7;
    color: var(--dash-primary-dark);
}

.dash-content {
    padding: 2rem;
    flex: 1;
}

/* Welcome banner */
.dash-welcome-card {
    background: linear-gradient(135deg, var(--dash-sidebar-bg) 0%, var(--dash-primary) 60%, #0d5d49 100%);
    color: #ffffff;
    border-radius: 14px;
    padding: 1.8rem 2.2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(197, 160, 89, 0.35);
    box-shadow: var(--dash-shadow-md);
}

.dash-welcome-card::after {
    content: "۞";
    font-size: 14rem;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    right: -2rem;
    bottom: -5rem;
    pointer-events: none;
    line-height: 1;
}

.dash-welcome-title {
    font-size: 1.5rem;
    font-family: 'Cinzel', serif;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.dash-welcome-sub {
    font-size: 0.92rem;
    color: var(--dash-gold-light);
    max-width: 680px;
    line-height: 1.6;
}

/* ==========================================================================
   METRICS & KPI CARDS GRID
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--dash-card-bg);
    border-radius: 12px;
    padding: 1.35rem 1.25rem;
    border: 1px solid var(--dash-border);
    box-shadow: var(--dash-shadow-sm);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--dash-shadow-md);
    border-color: rgba(197, 160, 89, 0.4);
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--dash-primary), var(--dash-gold));
}

.stat-number {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dash-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-subtext {
    font-size: 0.75rem;
    color: #10b981;
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.stat-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f0fdf4;
    color: var(--dash-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* ==========================================================================
   ROLE-SPECIFIC FEATURE PANELS
   ========================================================================== */
.role-feature-section {
    background: var(--dash-card-bg);
    border-radius: 14px;
    border: 1px solid var(--dash-border);
    box-shadow: var(--dash-shadow-sm);
    padding: 1.75rem;
    margin-bottom: 2rem;
}

.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--dash-border);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dash-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Quick Action Badges */
.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.quick-action-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.15rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #1e293b;
    transition: all 0.2s ease;
}

.quick-action-card:hover {
    background: #ffffff;
    border-color: var(--dash-primary);
    box-shadow: var(--dash-shadow-sm);
    transform: translateY(-2px);
}

.quick-action-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--dash-primary), #0d5d49);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.quick-action-info h4 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    color: #0f172a;
}

.quick-action-info p {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
    line-height: 1.35;
}

/* ==========================================================================
   TABLES & LISTINGS
   ========================================================================== */
.table-responsive {
    overflow-x: auto;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
}

.dash-table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.dash-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
    color: #334155;
}

.dash-table tr:hover td {
    background-color: #fbfcfe;
}

/* User cell representation */
.user-meta-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cell-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #334155;
    font-weight: 700;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-meta-names {
    display: flex;
    flex-direction: column;
}

.user-meta-name {
    font-weight: 600;
    color: #0f172a;
}

.user-meta-email {
    font-size: 0.78rem;
    color: #64748b;
}

/* Action buttons */
.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-primary-sm {
    background-color: var(--dash-primary);
    color: #ffffff;
}
.btn-primary-sm:hover {
    background-color: var(--dash-primary-dark);
}

.btn-outline-sm {
    background-color: transparent;
    border: 1px solid #cbd5e1;
    color: #334155;
}
.btn-outline-sm:hover {
    border-color: var(--dash-primary);
    color: var(--dash-primary);
    background: #f0fdf4;
}

.btn-success-sm {
    background-color: #10b981;
    color: #ffffff;
}
.btn-success-sm:hover {
    background-color: #059669;
}

.btn-danger-sm {
    background-color: #ef4444;
    color: #ffffff;
}
.btn-danger-sm:hover {
    background-color: #dc2626;
}

/* ==========================================================================
   COLLECTOR FIELD SUBMISSION FORM
   ========================================================================== */
.collector-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1.5px solid rgba(197, 160, 89, 0.4);
    box-shadow: var(--dash-shadow-sm);
    padding: 1.5rem;
}

.collector-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.collector-badge {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* ==========================================================================
   MODAL STYLES
   ========================================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 37, 29, 0.65);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #ffffff;
    border-radius: 14px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: modalSlide 0.25s ease-out;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--dash-sidebar-bg), var(--dash-primary));
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--dash-gold);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #ffffff;
    font-family: 'Cinzel', serif;
}

.modal-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 1.5rem;
    max-height: 80vh;
    overflow-y: auto;
}

/* ==========================================================================
   NAVBAR AUTH BUTTONS (ON PUBLIC SITE)
   ========================================================================== */
.nav-auth-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-left: 1rem;
}

.btn-nav-login {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, var(--dash-primary), var(--dash-primary-dark));
    color: #ffffff !important;
    padding: 0.45rem 0.95rem !important;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600 !important;
    border: 1px solid var(--dash-gold);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(10, 77, 60, 0.2);
}

.btn-nav-login:hover {
    background: linear-gradient(135deg, #0d5d49, #074032);
    box-shadow: 0 4px 10px rgba(10, 77, 60, 0.3);
    transform: translateY(-1px);
}

.btn-nav-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: var(--dash-primary) !important;
    padding: 0.35rem 0.85rem !important;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600 !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-nav-dashboard:hover {
    background: #dcfce7;
    border-color: var(--dash-primary);
}

.btn-nav-admin {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309 !important;
    padding: 0.35rem 0.85rem !important;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600 !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-nav-admin:hover {
    background: #fef3c7;
    border-color: #d97706;
    color: #92400e !important;
}

.user-avatar-mini {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--dash-primary);
    color: var(--dash-gold-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
}

.btn-nav-logout {
    background: none;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-nav-logout:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
    .dash-sidebar {
        position: fixed;
        left: -270px;
        transition: left 0.3s ease;
    }
    .dash-sidebar.mobile-open {
        left: 0;
    }
    .sidebar-mobile-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .dash-content {
        padding: 1.25rem 1rem;
    }
    .dash-welcome-card {
        padding: 1.5rem;
    }
    .auth-wrapper {
        padding: 1.5rem 0.75rem;
    }
    .auth-card {
        border-radius: 12px;
        width: 100%;
        max-width: 100%;
    }
    .auth-header {
        padding: 1.75rem 1.25rem 1.5rem;
    }
    .auth-body {
        padding: 1.5rem 1.15rem;
    }
    .demo-buttons {
        gap: 0.35rem;
    }
    .btn-demo-pill {
        flex: 1 1 calc(50% - 0.35rem);
        justify-content: center;
        padding: 0.4rem 0.5rem;
        font-size: 0.7rem;
    }
    .nav-auth-actions {
        width: 100%;
        justify-content: center;
        margin: 0.5rem 0;
    }
}
