/* ====== GLOBAL STYLES ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* School Colors */
    --green-primary: #0d7a3e;
    --green-dark: #065a2a;
    --green-light: #1a9e52;
    --gold: #c9a84c;
    --gold-light: #f4e5b1;
    --cream: #fdf8f0;
    --maroon: #800000;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--cream);
    color: #1a1a2e;
}

/* ====== BUTTONS ====== */
.btn-primary {
    background: var(--green-primary);
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(13, 122, 62, 0.3);
}

.btn-gold {
    background: var(--gold);
    color: #1a1a2e;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background: #b8933a;
    transform: translateY(-2px);
}

.btn-danger {
    background: #dc2626;
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* ====== CARDS ====== */
.card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(201, 168, 76, 0.15);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

/* ====== FORM INPUTS ====== */
.input-field {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: var(--green-primary);
    box-shadow: 0 0 0 4px rgba(13, 122, 62, 0.1);
    outline: none;
}

/* ====== TABLES ====== */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: var(--green-primary);
    color: white;
    padding: 12px;
    text-align: left;
}

td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

tr:hover {
    background: #f9f9f9;
}

/* ====== GRADES ====== */
.grade-A { color: #10b981; font-weight: 700; }
.grade-B { color: #3b82f6; font-weight: 700; }
.grade-C { color: #f59e0b; font-weight: 700; }
.grade-D { color: #ef4444; font-weight: 700; }
.grade-F { color: #dc2626; font-weight: 700; }

/* ====== STATUS BADGES ====== */
.badge-present {
    background: #d1fae5;
    color: #065f46;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-absent {
    background: #fee2e2;
    color: #991b1b;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-late {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
    .card {
        padding: 16px;
    }
    
    .btn-primary, .btn-gold, .btn-danger {
        width: 100%;
        justify-content: center;
    }
}

/* ====== ADDITIONAL STYLES FOR INDEX ====== */

/* Typography */
.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, #0d7a3e, #c9a84c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hover underline animation */
.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c9a84c;
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
}

/* Shimmer effect for cards */
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Pulse animation for badges */
@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse-badge {
    animation: pulse-badge 2s ease-in-out infinite;
}