/* Base look for the evaluation forms and the Supervision Hub: colours, school header, navigation buttons,
   theme toggle, footer and dark mode. Self-contained on purpose - these pages do not load the schedule
   site's styles.css, so changes to either site can't affect the other. */
:root {
            --primary-blue: #1e3a8a;
            --accent-blue: #2563eb;
            --header-bg: #0f172a;
            --bg-main: #f8fafc;
            --card-bg: #ffffff;
            --border-color: #e2e8f0;
            --text-dark: #1e293b;
            --text-muted: #64748b;
            --text-light-muted: #94a3b8;
            --free-bg: #ecfdf5;
            --free-border: #a7f3d0;
            --free-text: #065f46;
            --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
            --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.08);
        }

        * {
            box-sizing: border-box;
        }

        body {
            font-family: 'Montserrat', sans-serif;
            margin: 0;
            padding: 24px 16px;
            background-color: var(--bg-main);
            color: var(--text-dark);
            -webkit-font-smoothing: antialiased;
        }

        /* Header Banner */
        header {
            background: linear-gradient(135deg, #0f172a 0%, var(--primary-blue, #1e3a8a) 100%);
            padding: 24px 20px 16px 20px;
            border-radius: 12px;
            margin: 0 auto 24px auto;
            max-width: var(--page-max, 1200px);
            box-shadow: var(--shadow-md);
            border: 1px solid #1e293b;
        }

        .header-content {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 24px;
            max-width: 1000px;
            margin: 0 auto 16px auto;
        }

        .school-logo {
            max-height: 75px;
            width: auto;
            object-fit: contain;
            filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
        }

        .header-text {
            text-align: left;
        }

        h1 {
            color: #ffffff;
            font-size: 24px;
            font-weight: 800;
            margin: 0 0 6px 0;
            letter-spacing: -0.5px;
        }

        p.subtitle {
            color: var(--text-light-muted);
            font-size: 13px;
            font-weight: 500;
            margin: 0;
        }


        .nav-tabs {
            display: flex;
            justify-content: center;
            gap: 12px;
            max-width: var(--page-max, 1200px);
            margin: 0 auto;
            border-top: 1px solid rgba(255, 255, 255, 0.15);
            padding-top: 16px;
            flex-wrap: wrap;
        }

        .nav-btn {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #ffffff;
            padding: 10px 20px;
            border-radius: 8px;
            font-family: 'Montserrat', sans-serif;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .nav-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .nav-btn.active {
            background: #ffffff;
            color: var(--primary-blue);
            border-color: #ffffff;
            box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        }

/* Phones */
@media (max-width: 768px) {
    body { padding: 16px 10px; }
    header { padding: 20px 16px; }
    .header-content { flex-direction: column; text-align: center; gap: 14px; }
    .header-text { text-align: center; }
    h1 { font-size: 20px; }
    .school-logo { max-height: 65px; }
    .nav-tabs { flex-direction: column; }
    .nav-btn { justify-content: center; width: 100%; }
}


/* ================= THEME TOGGLE BUTTON ================= */
.theme-toggle-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    height: 36px;
    padding: 0 16px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.theme-toggle-btn .icon-moon { display: inline; }
.theme-toggle-btn .icon-sun { display: none; }

body.dark-mode .theme-toggle-btn .icon-moon { display: none; }
body.dark-mode .theme-toggle-btn .icon-sun { display: inline; }

@media (max-width: 768px) {
    .theme-toggle-btn { top: 12px; right: 12px; height: 32px; padding: 0 12px; font-size: 12px; }
}

/* ================= FOOTER ================= */
footer.site-footer {
    max-width: var(--page-max, 1200px);
    margin: 32px auto 0 auto;
    padding: 18px 20px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

footer.site-footer .footer-credit {
    letter-spacing: 0.02em;
}


/* ================= DARK MODE (additive, applied only when body.dark-mode is set) ================= */
body.dark-mode {
    --bg-main: #0f172a;
    --card-bg: #1e293b;
    --border-color: #334155;
    --text-dark: #e2e8f0;
    --text-muted: #94a3b8;
    --text-light-muted: #64748b;
    --free-bg: #052e1f;
    --free-border: #14532d;
    --free-text: #86efac;
}
