:root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --sidebar: #0f172a;
    --sidebar-muted: #9ca3af;
}

body {
    background: var(--bg);
    color: #111827;
    font-size: 0.95rem;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 14px;
    padding: 14px;
}

.sidebar {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 18px 14px;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.28);
    position: sticky;
    top: 14px;
    max-height: calc(100vh - 28px);
}

.brand {
    font-weight: 700;
    font-size: 1.05rem;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    letter-spacing: 0.3px;
}

.brand-subtext {
    display: block;
    margin-top: 2px;
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0;
}

.sidebar .nav-link {
    color: var(--sidebar-muted);
    border-radius: 12px;
    padding: 11px 12px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all 0.18s ease;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    color: #fff;
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.32);
    transform: translateX(2px);
}

.logout-link {
    margin-top: auto;
}

.main-content {
    padding: 2px;
}

.topbar {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 14px;
    z-index: 20;
}

.user-chip {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: #312e81;
    font-weight: 600;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.85rem;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.content-wrapper {
    margin-top: 8px;
}

.dashboard-hero {
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.quick-item {
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    transition: all 0.16s ease;
}

.quick-item:hover {
    border-color: rgba(99, 102, 241, 0.4);
    color: #1e1b4b;
    transform: translateY(-1px);
}

.stat-card {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 6px;
}

.status-pending { background: #f59e0b !important; }
.status-approved { background: #3b82f6 !important; }
.status-processing { background: #8b5cf6 !important; }
.status-completed { background: #10b981 !important; }
.status-rejected { background: #ef4444 !important; }

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: radial-gradient(circle at top right, #eef2ff 0%, #f5f7fb 45%, #f5f7fb 100%);
}

.auth-card {
    width: 100%;
    max-width: 460px;
    border-radius: 14px;
    border: 1px solid rgba(99, 102, 241, 0.18);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12) !important;
}

.auth-brand-wrap {
    width: 100%;
    max-width: 980px;
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 20px;
    align-items: stretch;
}

.auth-brand-panel {
    border-radius: 18px;
    padding: 26px;
    background: linear-gradient(140deg, #1e1b4b 0%, #312e81 60%, #4338ca 100%);
    color: #fff;
    box-shadow: 0 24px 44px rgba(30, 27, 75, 0.28);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-brand-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.12);
    margin-bottom: 14px;
}

.auth-brand-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.auth-brand-subtitle {
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 18px;
}

.auth-brand-points {
    display: grid;
    gap: 8px;
    font-size: 0.94rem;
    color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 991px) {
    .app-shell {
        grid-template-columns: 1fr;
        padding: 8px;
        gap: 10px;
    }

    .sidebar {
        min-height: auto;
        position: static;
        max-height: none;
    }

    .topbar {
        position: static;
    }

    .quick-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-brand-wrap {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .auth-brand-panel {
        order: 2;
        padding: 18px;
    }

    .auth-card {
        order: 1;
        max-width: 520px;
    }
}
