:root {
    --primary: #059669;
    --primary-dark: #047857;
    --primary-light: #d1fae5;
    --secondary: #0284c7;
    --secondary-dark: #0369a1;
    --accent: #f59e0b;
    --surface: rgba(255, 255, 255, 0.96);
    --text: #0f172a;
    --text-muted: #334155;
    --border: rgba(255, 255, 255, 0.8);
    --shadow: 0 25px 50px -12px rgba(2, 132, 199, 0.3);
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0c4a6e 0%, #0284c7 30%, #0ea5e9 60%, #059669 100%);
    background-size: 400% 400%;
    animation: liveWallpaperShift 16s ease infinite;
    color: var(--text);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

@keyframes liveWallpaperShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Glowing Live Background Orbs / Particles */
.bg-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    display: block;
    list-style: none;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    animation: animateParticle 20s linear infinite;
    bottom: -150px;
    border-radius: 50%;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

.particle:nth-child(1) { left: 10%; width: 45px; height: 45px; animation-duration: 12s; background: rgba(56, 189, 248, 0.4); }
.particle:nth-child(2) { left: 20%; width: 30px; height: 30px; animation-duration: 17s; animation-delay: 2s; background: rgba(52, 211, 153, 0.4); }
.particle:nth-child(3) { left: 35%; width: 40px; height: 40px; animation-duration: 14s; animation-delay: 4s; background: rgba(250, 204, 21, 0.45); }
.particle:nth-child(4) { left: 50%; width: 55px; height: 55px; animation-duration: 22s; animation-delay: 0s; background: rgba(45, 212, 191, 0.4); }
.particle:nth-child(5) { left: 65%; width: 30px; height: 30px; animation-duration: 13s; animation-delay: 3s; background: rgba(125, 211, 252, 0.45); }
.particle:nth-child(6) { left: 80%; width: 50px; height: 50px; animation-duration: 24s; animation-delay: 1s; background: rgba(52, 211, 153, 0.4); }
.particle:nth-child(7) { left: 90%; width: 35px; height: 35px; animation-duration: 16s; animation-delay: 5s; background: rgba(250, 204, 21, 0.45); }

@keyframes animateParticle {
    0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0.9; }
    50% { opacity: 0.5; transform: translateY(-500px) rotate(360deg) scale(1.4); }
    100% { transform: translateY(-1000px) rotate(720deg) scale(0.8); opacity: 0; }
}

/* Bikini Bottom Style: LARGE Animated Emojis / Live Wallpaper Characters */
.live-wallpaper-chars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.live-char {
    position: absolute;
    font-size: 78px;
    opacity: 0.75;
    animation: floatChar 15s linear infinite;
    bottom: -150px;
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.95));
}

.live-char:nth-child(1) { left: 8%; animation-duration: 13s; animation-delay: 0s; }
.live-char:nth-child(2) { left: 22%; animation-duration: 18s; animation-delay: 2s; }
.live-char:nth-child(3) { left: 38%; animation-duration: 15s; animation-delay: 1s; }
.live-char:nth-child(4) { left: 55%; animation-duration: 19s; animation-delay: 3s; }
.live-char:nth-child(5) { left: 72%; animation-duration: 14s; animation-delay: 2s; }
.live-char:nth-child(6) { left: 88%; animation-duration: 16s; animation-delay: 4s; }

@keyframes floatChar {
    0% { transform: translateY(0) translateX(0) rotate(0deg) scale(1); opacity: 0.4; }
    50% { transform: translateY(-500px) translateX(45px) rotate(25deg) scale(1.25); opacity: 0.85; }
    100% { transform: translateY(-1100px) translateX(-35px) rotate(-25deg) scale(0.9); opacity: 0; }
}

/* Swaying Seaweed / Kelp Animation (Bikini Bottom Style) */
.seaweed-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    height: 140px;
}

.seaweed {
    font-size: 64px;
    opacity: 0.65;
    animation: swayKelp 3.8s ease-in-out infinite alternate;
    transform-origin: bottom center;
    filter: drop-shadow(0 0 15px rgba(5, 150, 105, 0.8));
}

.seaweed:nth-child(2) { animation-duration: 4.5s; animation-delay: 0.8s; font-size: 72px; }
.seaweed:nth-child(3) { animation-duration: 3.2s; animation-delay: 0.4s; font-size: 58px; }
.seaweed:nth-child(4) { animation-duration: 4.2s; animation-delay: 1.2s; font-size: 68px; }
.seaweed:nth-child(5) { animation-duration: 3.5s; animation-delay: 0.6s; font-size: 62px; }

@keyframes swayKelp {
    0% { transform: rotate(-10deg); }
    100% { transform: rotate(12deg); }
}

/* Modern Glassmorphic Navbar */
.navbar {
    background: rgba(12, 74, 110, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 10;
    position: relative;
}

.navbar .logo {
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #38bdf8 0%, #34d399 50%, #fde047 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.navbar .nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.navbar a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.navbar a:hover {
    color: #fde047;
    text-shadow: 0 0 12px rgba(253, 224, 71, 0.9);
    transform: translateY(-2px);
}

/* Modern Glassmorphic Footer */
.footer {
    background: rgba(12, 74, 110, 0.85);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    text-align: center;
    padding: 20px;
    font-size: 15px;
    font-weight: 500;
    margin-top: auto;
    z-index: 10;
    position: relative;
}

/* Wide & Taller Spacious Main Content Containers */
.main-content {
    margin: 50px auto !important;
    width: 95% !important;
    max-width: 1240px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1 !important;
    z-index: 5 !important;
    position: relative !important;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 36px;
    padding: 64px 56px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), 0 0 50px rgba(56, 189, 248, 0.25);
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 1160px !important;
    min-height: 820px;
    z-index: 5;
    position: relative;
    transition: all 0.3s ease;
}

/* Hero Landing Section */
.hero-section {
    max-width: 1320px;
    margin: 50px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 35px;
    align-items: center;
    flex: 1;
    z-index: 5;
    position: relative;
}

@media (max-width: 960px) {
    .hero-section {
        grid-template-columns: 1fr;
    }
}

.hero-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 32px;
    padding: 48px 36px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(56, 189, 248, 0.3);
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.hero-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4), 0 0 70px rgba(52, 211, 153, 0.4);
}

.animated-illustration-box {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 28px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: floatBox 6s ease-in-out infinite;
}

@keyframes floatBox {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.floating-icon {
    animation: bounceIcon 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes bounceIcon {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.05); }
}

.glowing-star {
    animation: pulseStar 2.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes pulseStar {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.8)); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 25px rgba(250, 204, 21, 1)); }
}

/* Info Section */
.info-section {
    max-width: 1000px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-radius: 28px;
    padding: 44px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    z-index: 5;
    position: relative;
}

/* Modern Modals & Buttons */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 74, 110, 0.75);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card, .modal-box {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    border-radius: 36px;
    padding: 48px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
    animation: scaleUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Rumble / Pulse Word Animations */
@keyframes rumble {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.03) rotate(-1deg); }
    50% { transform: scale(1) rotate(0deg); }
    75% { transform: scale(1.03) rotate(1deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.rumble-word {
    display: inline-block;
    font-size: 64px;
    font-weight: 900;
    background: linear-gradient(135deg, #0284c7 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rumble 2s ease infinite;
    text-shadow: 0 10px 30px rgba(2, 132, 199, 0.3);
}

/* Print / PDF Export Styling */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    .navbar, .footer, .btn, .level-container, #teacherAdminSection, .notice-banner, .bg-particles, .live-wallpaper-chars {
        display: none !important;
    }
    .dashboard-card {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        background: white !important;
    }
    #studentRecordsSection {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
}
