/* ============================================
   HOME DASHBOARD - REDESIGNED THEME
   Glass-morphism • Vibrant gradient • Fully responsive
   Matches registration & entry pages
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --grad-primary: linear-gradient(135deg, #6366f1, #8b5cf6, #ec489a);
    --grad-secondary: linear-gradient(135deg, #06b6d4, #3b82f6);
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-light: #f1f5f9;
    --text-dark: #0f172a;
    --card-radius: 2rem;
    --transition-smooth: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

body {
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    background: radial-gradient(circle at 20% 30%, #0f0c29, #302b63, #24243e);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    overflow-x: hidden;
}

/* ----- ANIMATED BACKGROUND ORBS (same as previous pages) ----- */
.bg-orbital {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: floatOrb 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, #ff8c8c, #ff4d6d);
    top: -20%;
    left: -20%;
    animation-duration: 28s;
}

.orb-2 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #6c63ff, #3b82f6);
    bottom: -15%;
    right: -15%;
    animation-duration: 24s;
    animation-direction: alternate-reverse;
}

.orb-3 {
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, #a855f7, #ec489a);
    top: 40%;
    left: 60%;
    animation-duration: 32s;
    opacity: 0.4;
}

.orb-4 {
    width: 28vw;
    height: 28vw;
    background: radial-gradient(circle, #2dd4bf, #14b8a6);
    bottom: 10%;
    left: 10%;
    animation-duration: 26s;
    opacity: 0.35;
}

.mesh-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 2px, transparent 2px, transparent 8px);
    pointer-events: none;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(40px, 40px) scale(1.2);
    }
}

/* ----- MAIN CONTAINER & GLASS CARD ----- */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--card-radius);
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 50px -15px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.35);
}

/* ----- CARD HEADER ----- */
.card-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: 0.4rem 1rem 0.4rem 0.8rem;
    border-radius: 60px;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.icon-ring {
    background: var(--grad-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
}

.icon-ring i {
    font-size: 1rem;
    color: white;
}

.badge-text {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light);
    opacity: 0.9;
}

.card-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0.5rem 0;
    color: white;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(120deg, #facc15, #ff8c8c, #a855f7);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: inline-block;
}

.subhead {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.header-decoration {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #ec489a);
    border-radius: 3px;
    margin: 1rem auto 0;
}

/* ----- STATS CARDS (glass effect) ----- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 0 2rem 1rem;
    margin-bottom: 1rem;
}

.stat-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 1.2rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-4px);
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(250, 204, 21, 0.3);
}

.stat-icon {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #facc15;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
}

.stat-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ----- NAVIGATION CARDS ----- */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0.5rem 2rem 1rem;
}

.nav-card {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 1.2rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-card:hover {
    transform: translateY(-6px);
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(250, 204, 21, 0.4);
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.3);
}

.nav-icon {
    font-size: 2.2rem;
    color: #facc15;
    margin-bottom: 1rem;
}

.nav-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.nav-card p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

/* ----- MESSAGE AREA ----- */
.message-area {
    margin: 1rem 2rem 0;
    padding: 0.8rem;
    border-radius: 40px;
    text-align: center;
    font-weight: 500;
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border-left: 4px solid #facc15;
    color: #f1f5f9;
}

.message-area:empty {
    display: none;
}

.message-area.success {
    border-left-color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
}

.message-area.error {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

/* ----- FOOTER NOTE ----- */
.card-footer-note {
    padding: 0 2rem 1.8rem;
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
    padding-top: 1.2rem;
}

.card-footer-note i {
    font-size: 0.7rem;
    color: #facc15;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 800px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1.5rem 0.5rem;
    }

    .nav-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.5rem 1.5rem 1rem;
    }

    .card-header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {
    body {
        padding: 1rem;
    }

    .glass-card {
        border-radius: 1.5rem;
    }

    .card-header {
        padding: 1.5rem 1rem 1rem;
    }

    .card-header h1 {
        font-size: 1.6rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .stat-content h3 {
        font-size: 1.6rem;
    }

    .nav-card {
        padding: 1.2rem;
    }

    .nav-icon {
        font-size: 1.8rem;
    }

    .nav-card h3 {
        font-size: 1rem;
    }

    .message-area {
        margin: 0.8rem 1rem;
    }
}

/* Accessibility */
.nav-card:focus-visible,
.stat-card:focus-visible {
    outline: 2px solid #facc15;
    outline-offset: 2px;
}