/* ============================================================
   Dashboard — hero header, animated KPIs, shortcuts, reminders
   ============================================================ */

.dash-root {
    --dash-radius: 16px;
}

/* Staggered fade-in-up entrance for every top-level section */
.dash-anim {
    animation: dashFadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--delay, 0ms);
}

@keyframes dashFadeInUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Hero header ---------- */
.dash-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--dash-radius);
    padding: 32px 36px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 55%, #6a11cb 100%);
    box-shadow: 0 10px 30px rgba(30, 60, 114, 0.25);
}

.dash-hero-glow {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    animation: dashPulse 4s ease-in-out infinite;
}

@keyframes dashPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.15); opacity: 1; }
}

.dash-hero-content { position: relative; z-index: 1; }
.dash-hero-greeting { color: rgba(255, 255, 255, 0.85); text-transform: uppercase; letter-spacing: 1px; }
.dash-hero-title { color: #ffffff; font-weight: 700; }
.dash-hero-sub { color: rgba(255, 255, 255, 0.75); }
.dash-hero-icon { color: rgba(255, 255, 255, 0.25); font-size: 4.5rem !important; }
.dash-hero-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    padding: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* ---------- KPI tiles ---------- */
.dash-kpi {
    position: relative;
    border-radius: var(--dash-radius);
    padding: 20px;
    color: #ffffff;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.dash-kpi:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.dash-kpi-icon {
    position: absolute;
    right: 14px;
    top: 14px;
    opacity: 0.28;
    font-size: 2.4rem !important;
}

.dash-kpi-label { color: rgba(255, 255, 255, 0.85); letter-spacing: 0.5px; }
.dash-kpi-value { font-weight: 700; margin-top: 4px; }
.dash-kpi-foot { color: rgba(255, 255, 255, 0.75); }

.dash-kpi-a { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.dash-kpi-b { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.dash-kpi-c { background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%); }
.dash-kpi-d { background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%); }
.dash-kpi-e { background: linear-gradient(135deg, #f857a6 0%, #ff5858 100%); }

/* ---------- Section titles / cards ---------- */
.dash-section-title { font-weight: 600; }

.dash-card {
    border-radius: var(--dash-radius);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease;
}

.dash-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ---------- Reminders ---------- */
.dash-reminder {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.dash-reminder:hover {
    background-color: rgba(0, 0, 0, 0.035);
    transform: translateX(3px);
}

/* ---------- Department shortcut tiles ---------- */
.dash-shortcut {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 10px;
    border-radius: var(--dash-radius);
    cursor: pointer;
    color: #ffffff;
    text-align: center;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dash-shortcut:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
}

.dash-shortcut-icon { font-size: 2rem !important; opacity: 0.95; }
.dash-shortcut-label { font-weight: 600; }

.dash-grad-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.dash-grad-2 { background: linear-gradient(135deg, #11998e, #38ef7d); }
.dash-grad-3 { background: linear-gradient(135deg, #fc4a1a, #f7b733); }
.dash-grad-4 { background: linear-gradient(135deg, #fa709a, #fee140); }
.dash-grad-5 { background: linear-gradient(135deg, #30cfd0, #330867); }
.dash-grad-6 { background: linear-gradient(135deg, #ee0979, #ff6a00); }
.dash-grad-7 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.dash-grad-8 { background: linear-gradient(135deg, #7f00ff, #e100ff); }

/* ---------- Dark theme adjustments ---------- */
@media (prefers-color-scheme: dark) {
    .dash-card { border-color: rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); }
    .dash-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }
    .dash-reminder:hover { background-color: rgba(255, 255, 255, 0.06); }
}

:root[data-theme="dark"] .dash-card { border-color: rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); }
:root[data-theme="dark"] .dash-reminder:hover { background-color: rgba(255, 255, 255, 0.06); }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .dash-anim, .dash-hero-glow, .dash-kpi, .dash-shortcut, .dash-reminder {
        animation: none !important;
        transition: none !important;
    }
}
