      /* --- Global Variables (Dark Mode Pallet) --- */
:root {
    --color-primary: #8ab4f8; /* Soft Blue for Actions/Highlights (High visibility on dark) */
    --color-secondary: #6aa84f; /* Green for Live/Success (Good visibility) */
    --color-danger: #f28b82; /* Red for Leave Button */
    
    /* Dark Mode Core Colors */
    --color-text-light: #e8eaed; /* Light gray for main text */
    --color-text-muted: #bdc1c6; /* Muted gray for secondary text */
    --color-background-dark: #1f1f1f; /* Main app background (Dark Gray) */
    --color-background-surface: #292929; /* Component/Card background */
    --color-background-sidebar: #181818; /* Darkest shade for sidebars */
    --color-border: #444444; /* Dark border lines */
    
    --header-height: 60px;
    --sidebar-width: 250px;
    --right-sidebar-width: 300px;
}

/* --- Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--color-text-light); /* Light text on dark background */
    background-color: var(--color-background-dark);
}

        /* Import your Global Variables here or link the same file */
@import url('variables.css'); 

.welcome-page {
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
    line-height: 1.6;
}

/* --- Navigation --- */
.welcome-nav {
    height: 70px;
    background-color: var(--color-background-sidebar);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 2000;
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { font-weight: bold; font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.logo span span { color: var(--color-primary); }

.nav-links { display: flex; align-items: center; gap: 25px; }
.nav-links a { text-decoration: none; color: var(--color-text-muted); font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover { color: var(--color-primary); }

.login-pill {
    background: var(--color-primary);
    color: var(--color-background-sidebar) !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 600;
}

/* --- Hero --- */
.welcome-hero {

    text-align: center;
    background: radial-gradient(circle at top right, #1a237e33, transparent), 
                var(--color-background-dark);
}

.hero-content h1 { font-size: 3rem; margin: 20px 0; }
.text-highlight { color: var(--color-primary); }

.badge-live {
    background: rgba(106, 168, 79, 0.1);
    color: var(--color-secondary);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    border: 1px solid var(--color-secondary);
}

.hero-actions { margin-top: 40px; display: flex; justify-content: center; gap: 15px; }

.btn-primary {
    background: var(--color-primary);
    color: var(--color-background-sidebar);
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.btn-outline {
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
}
/* ================= TEACHERS ================= */
section {
    padding: 5px 2px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 0 10px;
}

.teacher-card {
    background: var(--color-background-surface);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--color-border);
}

.teacher-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 15px;
}

/* ================= PARENT FEED ================= */
/* --- Performance Section --- */
.performance-section {
    padding: 80px 5%;
    background-color: var(--color-background-sidebar);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 50px 0;
}

.stat-card {
    background: var(--color-background-surface);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    text-align: center;
}

.stat-val { font-size: 2.5rem; font-weight: 800; margin-bottom: 5px; }
.stat-label { color: var(--color-text-muted); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }

/* --- Table Styles --- */
.performance-table-wrapper {
    background: var(--color-background-surface);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    max-width: 900px;
    margin: 0 auto;
}

.showcase-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.showcase-table th { text-align: left; padding: 12px; color: var(--color-text-muted); border-bottom: 1px solid var(--color-border); }
.showcase-table td { padding: 15px 12px; border-bottom: 1px solid var(--color-border); }

.progress-bar { background: var(--color-border); height: 8px; border-radius: 10px; width: 100px; }
.fill { background: var(--color-secondary); height: 100%; border-radius: 10px; }

/* --- Staff Role Colors --- */
.role-teacher { color: var(--color-secondary); border-color: var(--color-secondary); }
.role-admin { color: #fdd663; border-color: #fdd663; }
.role-registrar { color: #8ab4f8; border-color: #8ab4f8; }

/* --- Responsive Layout for Mobile --- */
@media (max-width: 768px) {
    /* Hide the informational links but keep the container flexible */
    .nav-links a:not(.login-pill) { 
        display: none; 
    }

    .nav-links {
        display: flex;
        align-items: center;
    }

    .login-pill {
                padding: 4px 12px;
        font-size: 14px;
        margin-left: 0; /* Adjust spacing for mobile */
    }

    .logo span {
        font-size: 13px; /* Shrink logo text slightly for small screens */
    }
}
    .hero-content h1 { font-size: 2rem; }
    
    .parent-flex { 
        flex-direction: column; 
        text-align: center;
    }

    .teachers-grid {
        grid-template-columns: 1fr; /* Stack cards on small screens */
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-outline { width: 100%; max-width: 300px; text-align: center; }

/* --- Card Hover Effects --- */
.teacher-card {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

/* --- Parent Feed UI Elements --- */
.feed-item {
    transition: background 0.2s ease;
    padding: 10px;
    border-radius: 8px;
}
.feed-item:hover {
    background: rgba(255,255,255,0.05);
}
/* --- Performer Cards (Replacing Table) --- */
.performer-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.performer-card {
    background: var(--color-background-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    transition: 0.3s;
}

.performer-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

.performer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rank-badge {
    background: var(--color-primary);
    color: var(--color-background-dark);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
}

.student-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.class-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--color-border);
}

.performance-info {
    margin-top: 10px;
}

.performance-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 5px;
}

/* Progress bar inside cards */
.progress-bar {
    background: #333;
    height: 10px;
    border-radius: 10px;
    width: 100%;
    overflow: hidden;
}

.fill {
    background: var(--color-secondary);
    height: 100%;
    border-radius: 10px;
}

/* --- Hero --- */
.welcome-hero {

    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden; 
    background: var(--color-background-dark);
}

.hero-slider-container {
    position: relative;
    min-height: 600px; /* Increased for better desktop look */
    height: 80vh;      /* Makes it responsive to screen height */
    width: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Background Image Setup */
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;

    /* Layout inside the slide */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Hidden State */
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    /* Removed the long transition delay to stop the "black flicker" */
    transition: opacity 1.2s ease-in-out, visibility 1.2s;
}

/* Add a dark overlay so text is readable over ANY background image */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(75deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.4) 100%);
    z-index: 1;
}

/* Ensure content stays above the overlay */
.hero-inner {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- MOBILE SPECIFIC FIXES (Under 768px) --- */
@media (max-width: 768px) {
    .hero-slider-container {
        /* Allow the container to grow with the stacked text and image */
        height: auto;
        min-height: 100vh; /* Fill the mobile screen */
    }

    .hero-inner {
        flex-direction: column; /* Stack text on top of image */
        padding: 120px 20px 60px; /* Space for the header and footer */
        text-align: center;
    }

    .hero-text {
        margin-bottom: 40px;
        order: 1; /* Text first */
    }

    .hero-visual {
        order: 2; /* Image second */
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .student-img {
        max-height: 300px; /* Scale down student so they don't hide the whole BG */
    }

    .main-blob {
        width: 250px;
        height: 250px; /* Scale down blobs for mobile */
    }
    .welcome-hero {
    height: auto;      /* Makes it responsive to screen height */
}
}