/* ============================================================
   RESET & BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #3c2a1e;
    background: #f4efe8;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   GLASSMORPHISM CARD
   ============================================================ */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(107, 58, 42, 0.15);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(107, 58, 42, 0.25);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
header {
    background: linear-gradient(135deg, #4a2c1a 0%, #6b3a2a 100%);
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid #d4a373;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

header .logo img.site-logo {
    height: 55px;
    width: auto;
}

header .logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #f4efe8;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header .logo h1 span {
    color: #d4a373;
}

header .logo .motto {
    font-size: 0.8rem;
    font-style: italic;
    color: #d4a373;
    letter-spacing: 2px;
    margin-top: -5px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

nav a {
    color: #f4efe8;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

nav a:hover {
    color: #d4a373;
    border-bottom-color: #d4a373;
}

.btn-login {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff !important;
    padding: 0.5rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-login:hover {
    background: #d4a373;
    color: #4a2c1a !important;
    border-color: #d4a373;
    transform: scale(1.05);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    background: linear-gradient(145deg, #4a2c1a 0%, #1a3c5e 100%);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
    border-bottom: 6px solid #d4a373;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero h2 span {
    color: #d4a373;
}

.hero .main-motto {
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
    color: #d4a373;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    background: #1a3c5e;
    color: #fff;
    padding: 0.9rem 2.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    transition: 0.3s;
    border: 2px solid #d4a373;
    box-shadow: 0 4px 15px rgba(26, 60, 94, 0.4);
}

.btn-primary:hover {
    background: #d4a373;
    color: #1a3c5e;
    border-color: #1a3c5e;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 163, 115, 0.5);
}

.btn-secondary {
    background: transparent;
    color: #1a3c5e;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #1a3c5e;
    display: inline-block;
    transition: 0.3s;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #1a3c5e;
    color: #fff;
}

.btn-success {
    background: #166534;
    color: #fff;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    display: inline-block;
    transition: 0.3s;
    cursor: pointer;
}

.btn-success:hover {
    background: #15803d;
    transform: scale(1.05);
}

.btn-danger {
    background: #b91c1c;
    color: #fff;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    display: inline-block;
    transition: 0.3s;
    cursor: pointer;
}

.btn-danger:hover {
    background: #dc2626;
    transform: scale(1.05);
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features {
    padding: 4rem 0;
    background: transparent;
}

.features .container {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-box {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 2rem;
    border-radius: 20px;
    flex: 1 1 250px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(107, 58, 42, 0.12);
    transition: 0.3s;
}

.feature-box:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 16px 40px rgba(107, 58, 42, 0.2);
}

.feature-box h3 {
    margin-bottom: 0.5rem;
    color: #4a2c1a;
    font-size: 1.4rem;
}

/* ============================================================
   FORMS
   ============================================================ */
form {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 30px rgba(107, 58, 42, 0.1);
}

form label {
    font-weight: 600;
    color: #4a2c1a;
    display: block;
    margin-bottom: 0.3rem;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(107, 58, 42, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    transition: 0.3s;
    color: #3c2a1e;
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: #1a3c5e;
    box-shadow: 0 0 0 4px rgba(26, 60, 94, 0.15);
    background: #fff;
}

/* ============================================================
   TABLES
   ============================================================ */
.table-container {
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

th {
    background: #4a2c1a;
    color: #fff;
    padding: 12px;
    text-align: left;
}

td {
    padding: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

tr:hover {
    background: rgba(212, 163, 115, 0.1);
}

/* ============================================================
   STAFF GRID
   ============================================================ */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.staff-card {
    text-align: center;
}

.staff-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #d4a373;
    margin-bottom: 1rem;
    background: #e0d6c8;
}

.staff-card h3 {
    color: #4a2c1a;
    margin-bottom: 0.2rem;
}

.staff-card .qualification {
    color: #1a3c5e;
    font-weight: 600;
    font-size: 0.9rem;
}

.staff-card .subject {
    color: #6b3a2a;
    font-weight: 500;
}

.staff-card .experience {
    font-size: 0.9rem;
    color: #5a4a3a;
}

/* ============================================================
   DASHBOARD GRID
   ============================================================ */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.dash-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    padding: 2rem 1rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: #3c2a1e;
    display: block;
}

.dash-item:hover {
    background: #fff;
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.dash-item .icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: #2d1a0e;
    color: #d4a373;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 4px solid #d4a373;
}

footer p {
    opacity: 0.9;
    font-weight: 300;
}

/* ============================================================
   CHARACTER ASSESSMENT LEGEND
   ============================================================ */
.character-excellent {
    color: #000000;
    font-weight: bold;
}
.character-good {
    color: #1a3c5e;
    font-weight: bold;
}
.character-fair {
    color: #4a90d9;
    font-weight: bold;
}
.character-poor {
    color: #b91c1c;
    font-weight: bold;
}

.legend-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}
.legend-dot.excellent { background: #000000; }
.legend-dot.good { background: #1a3c5e; }
.legend-dot.fair { background: #4a90d9; }
.legend-dot.poor { background: #b91c1c; }

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    header,
    nav,
    .btn-login,
    #logoutBtn,
    footer {
        display: none !important;
    }

    .glass-card {
        box-shadow: none !important;
        background: white !important;
        border: 1px solid #ddd !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .no-print {
        display: none !important;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 0.5rem;
    }

    nav ul {
        justify-content: center;
        gap: 0.8rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .glass-card,
    form {
        padding: 1.5rem;
    }

    .staff-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dash-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .staff-grid {
        grid-template-columns: 1fr;
    }

    .dash-grid {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero .main-motto {
        font-size: 1.1rem;
    }

    .btn-primary {
        padding: 0.7rem 1.8rem;
        font-size: 0.9rem;
    }
}