/* css/style.css - Ultra Premium Glassmorphism Theme */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-dark-blue: #060b19;
    --bg-gradient-1: #0a1128;
    --bg-gradient-2: #00122e;
    
    --glass-bg: rgba(15, 23, 42, 0.55);
    --glass-bg-hover: rgba(20, 30, 55, 0.7);
    --glass-border: rgba(255, 204, 0, 0.25);
    --glass-border-glow: rgba(255, 204, 0, 0.6);
    
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-blue: #2563eb;
    --accent-blue-glow: rgba(37, 99, 235, 0.5);
    --accent-yellow: #fbbf24; /* Dark Yellow / Gold */
    --accent-yellow-glow: rgba(251, 191, 36, 0.5);
    
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --input-bg: rgba(15, 23, 42, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
}

body {
    background-color: var(--bg-dark-blue);
    background-image: 
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(251, 191, 36, 0.12) 0px, transparent 50%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Floating Ambient Orbs for Glassmorphism depth */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    z-index: -1;
    pointer-events: none;
    animation: floatOrb 20s infinite alternate ease-in-out;
}

body::before {
    width: 350px;
    height: 350px;
    background: rgba(37, 99, 235, 0.25);
    top: 10%;
    left: 15%;
}

body::after {
    width: 400px;
    height: 400px;
    background: rgba(251, 191, 36, 0.18);
    bottom: 10%;
    right: 15%;
    animation-delay: -10s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, 40px) scale(1.1); }
    100% { transform: translate(-40px, 80px) scale(0.95); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

/* Premium Glass Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.6),
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        0 0 20px rgba(251, 191, 36, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.8s;
}

.glass-panel:hover::before {
    left: 100%;
}

.glass-panel:hover {
    border-color: var(--glass-border-glow);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(251, 191, 36, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-accent {
    color: var(--accent-yellow);
    background: linear-gradient(135deg, #ffe066 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-yellow);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2), 0 0 20px rgba(251, 191, 36, 0.1);
    background: rgba(15, 23, 42, 0.9);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    width: 100%;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 8px 25px var(--accent-blue-glow);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.7);
}

.btn-warning {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #060b19;
    box-shadow: 0 8px 25px var(--accent-yellow-glow);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(251, 191, 36, 0.7);
}

/* Radio Buttons for Attendance */
.attendance-options {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 700;
}

.radio-label input {
    display: none;
}

.radio-label:hover {
    transform: scale(1.08);
    border-color: rgba(255, 255, 255, 0.4);
}

.radio-label:has(input[value="P"]:checked) {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #34d399;
    color: white;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.radio-label:has(input[value="A"]:checked) {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #f87171;
    color: white;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

.radio-label:has(input[value="L"]:checked) {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    border-color: #fde047;
    color: #060b19;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.5);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th {
    color: var(--accent-yellow);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    background: rgba(10, 17, 40, 0.6);
}

/* Alerts & Modals */
.alert {
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 24px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.alert-info {
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.4);
    color: #93c5fd;
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(6, 11, 25, 0.85);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    width: 90%;
    max-width: 520px;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

/* Helper Classes */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
}

/* Dashboard Stat Cards */
.stat-card {
    text-align: center;
    padding: 30px;
}
.stat-card h3 {
    font-size: 1.1rem;
    color: var(--text-secondary);
}
.stat-card .value {
    font-size: 3.2rem;
    font-weight: 800;
    margin: 12px 0;
}
.stat-card.boys .value { color: #60a5fa; text-shadow: 0 0 20px rgba(96, 165, 250, 0.4); }
.stat-card.girls .value { color: var(--accent-yellow); text-shadow: 0 0 20px rgba(251, 191, 36, 0.4); }
