﻿/* Variable Themes */
/*[data-nav-style="light"] {
    --bg: #ffffff;
    --text: #333;
    --border: #eee;
    --accent: #007bff;
}

[data-nav-style="dark"] {
    --bg: #1a1a1a;
    --text: #f4f4f4;
    --border: #333;
    --accent: #00d4ff;
}*/

/* General Styles */
/** {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.main-body {
    flex: 1;
    padding: 40px 20px;
}*/

/* Top Bar */
/*.top-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    padding: 8px 20px;
    font-size: 13px;
}

.top-container {
    display: flex;
    justify-content: flex-end;
}

.language-wrapper select {
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 2px 5px;
    cursor: pointer;
}*/

/* Navbar */
/*.navbar {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: 0.3s;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
    text-decoration: none;
    margin-right: 30px;
}*/

/* Layout Controls */
/*.nav-content {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
}

.nav-links-left {
    display: flex;
    list-style: none;
    gap: 20px;
}

    .nav-links-left a {
        text-decoration: none;
        color: var(--text);
        font-weight: 500;
    }*/

/* Hover Effect */
/*.hover-underline {
    position: relative;
}

    .hover-underline::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -5px;
        left: 50%;
        background: var(--accent);
        transition: 0.3s ease;
    }

    .hover-underline:hover::after {
        width: 100%;
        left: 0;
    }*/

/* Dropdowns & Buttons */
/*.dropdown {
    position: relative;
}

.drop-trigger {
    background: none;
    border: none;
    color: var(--text);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    padding: 5px 0;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 120%;
    background: var(--bg);
    border: 1px solid var(--border);
    min-width: 180px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-radius: 5px;
    list-style: none;
    z-index: 1001;
}

.dropdown.active .dropdown-menu {
    display: block;
    animation: slideIn 0.2s ease-out;
}

.dropdown-menu.right-align {
    right: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text);
}

    .dropdown-menu li a:hover {
        background: rgba(0,0,0,0.05);
        color: var(--accent);
    }*/

/* Auth Buttons */
/*.nav-auth-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.auth-label {
    font-weight: 600;
}

.auth-btn {
    background: var(--accent);
    color: #fff !important;
    padding: 8px 20px !important;
    border-radius: 50px;
}*/

/* Mobile Menu */
/*.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

    .mobile-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--text);
        margin: 5px 0;
    }

@media (max-width: 992px) {
    .mobile-toggle {
        display: block;
    }

    .nav-content {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg);
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid var(--border);
    }

        .nav-content.show {
            display: flex;
        }

    .nav-links-left, .nav-auth-right {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 20px;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background: rgba(0,0,0,0.02);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}*/

/* Footer */
/*.site-footer {
    background: #f1f1f1;
    text-align: center;
    padding: 20px;
    border-top: 1px solid #ddd;
}*/

/* --- Root Variables for easy Theme Switching --- */
/* --- Color Definitions --- */
/* --- Root Theme Variables --- */
:root {
    --bg-page: #ffffff;
    --bg-card: #f8f9fa;
    --text-main: #1e293b;
    --nav-bg: #1e3a8a; /* Deep Blue */
    --nav-text: #ffffff;
    --accent: #fbbf24; /* Gold */
    --footer-bg: #ffffff;
}

[data-theme="dark"] {
    --bg-page: #0f172a; /* Midnight Blue */
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --nav-bg: #000000; /* Solid Black */
    --nav-text: #cbd5e1;
    --accent: #38bdf8; /* Bright Sky Blue */
    --footer-bg: #0f172a;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    transition: background 0.4s ease, color 0.4s ease;
    margin: 0;
}

/* --- Fixed Header Logic --- */
header.sticky-top {
    z-index: 1050;
    transition: all 0.3s ease;
}

.top-util-bar {
    background: var(--bg-card);
    padding: 6px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--text-main);
}

.main-nav {
    background-color: var(--nav-bg) !important;
    padding: 12px 0;
}

/* --- Brand/Logo --- */
.brand-logo {
    width: 42px;
    height: 42px;
    background: var(--accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border-radius: 8px;
    margin-right: 12px;
}

.school-title {
    color: var(--nav-text);
    font-weight: 700;
    display: block;
    line-height: 1;
}

.school-subtitle {
    color: var(--accent);
    font-size: 0.7rem;
}

/* --- Nav Links --- */
.nav-custom-link {
    color: var(--nav-text) !important;
    font-weight: 500;
    margin: 0 10px;
}

    .nav-custom-link:hover {
        color: var(--accent) !important;
    }

/* --- Custom Menu Buttons --- */
.btn-login-custom {
    border: 1px solid var(--nav-text);
    color: var(--nav-text);
    border-radius: 6px;
    padding: 6px 20px;
}

.btn-register-custom {
    background: var(--accent);
    color: #000 !important;
    font-weight: 600;
    border-radius: 6px;
    padding: 6px 20px;
}

/* --- Theme Toggle --- */
.theme-toggle-btn {
    background: var(--nav-bg);
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
}

/* --- Content Flip Padding --- */
.page-content {
    min-height: 2000px; /* Just for testing scroll */
    padding-top: 2rem;
}