:root {
    --dash-bg: #f4f7fb;
    --dash-surface: #ffffff;
    --dash-text: #1b2540;
    --dash-muted: #5f6b82;
    --dash-border: #e5ebf4;
    --dash-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    --dash-shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
}

body.admin-dashboard {
    background: var(--dash-bg);
    color: var(--dash-text);
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.admin-dashboard .text-gradient {
    background: linear-gradient(120deg, #1f6bff 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dashboard-shell {
    position: relative;
}

.dashboard-shell::before,
.dashboard-shell::after {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.dashboard-shell::before {
    top: -120px;
    right: -160px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(31, 107, 255, 0.18), transparent 70%);
}

.dashboard-shell::after {
    bottom: -140px;
    left: -120px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12), transparent 70%);
}

.dashboard-shell>* {
    position: relative;
    z-index: 1;
}

.dashboard-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f7f9ff 65%);
    border: 1px solid var(--dash-border);
    border-radius: 26px;
    padding: 28px;
    box-shadow: var(--dash-shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--dash-muted);
}

.hero-title {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.8rem, 2.6vw, 2.6rem);
    font-weight: 700;
    margin: 10px 0 8px;
    color: #141a30;
}

.hero-subtitle {
    margin: 0;
    color: var(--dash-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.date-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--dash-border);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    font-weight: 600;
    color: #1c2745;
    width: fit-content;
}

.date-pill i {
    color: #1f6bff;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.summary-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.summary-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--summary-soft, #eef2ff);
    color: var(--summary-accent, #2563eb);
    font-size: 1rem;
    flex-shrink: 0;
}

.summary-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--dash-muted);
    display: block;
}

.summary-value {
    font-size: 1.45rem;
    font-weight: 700;
    color: #141a30;
    display: block;
}

.summary-foot {
    font-size: 0.78rem;
    color: var(--dash-muted);
    display: block;
}

.summary-card--primary {
    --summary-accent: #1f6bff;
    --summary-soft: #e8f1ff;
}

.summary-card--neutral {
    --summary-accent: #6366f1;
    --summary-soft: #eef2ff;
}

.summary-card--success {
    --summary-accent: #10b981;
    --summary-soft: #e7f8f1;
}

.summary-card--danger {
    --summary-accent: #ef4444;
    --summary-soft: #ffe9ea;
}

.dashboard-actions {
    margin-top: 32px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.section-heading h2 {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.4rem;
    margin: 0;
    color: #12192f;
}

.section-heading p {
    margin: 0;
    color: var(--dash-muted);
    max-width: 520px;
    font-size: 0.95rem;
}

.dash-card {
    --card-accent: #1f6bff;
    --card-soft: #e8f1ff;
    background: var(--dash-surface);
    border: 1px solid var(--dash-border);
    border-radius: 22px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: var(--dash-shadow-soft);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.dash-card::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--card-soft) 0%, transparent 70%);
    opacity: 0.7;
}

.dash-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--dash-shadow);
    border-color: rgba(31, 107, 255, 0.2);
}

.dash-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-soft);
    color: var(--card-accent);
    font-size: 1.35rem;
}

.dash-card__content h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.dash-card__content p {
    margin: 0;
    color: var(--dash-muted);
    line-height: 1.5;
    font-size: 0.95rem;
}

.dash-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(229, 235, 244, 0.9);
    font-weight: 600;
    color: var(--card-accent);
}

.dash-card__footer i {
    transition: transform 0.3s ease;
}

.dash-card:hover .dash-card__footer i {
    transform: translateX(6px);
}

.dash-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: #ef4444;
    color: #ffffff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.25);
}

.dash-card--primary {
    --card-accent: #1f6bff;
    --card-soft: #e8f1ff;
}

.dash-card--teal {
    --card-accent: #14b8a6;
    --card-soft: #e6fbf8;
}

.dash-card--amber {
    --card-accent: #f59e0b;
    --card-soft: #fff3db;
}

.dash-card--violet {
    --card-accent: #8b5cf6;
    --card-soft: #f1eaff;
}

@media (min-width: 992px) {
    .dashboard-hero {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .hero-text {
        max-width: 46%;
    }

    .hero-meta {
        width: 50%;
    }
}

@media (max-width: 991px) {
    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }
}
