﻿/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    --primary-green: #2c3e2e; /* Deep Forest Green */
    --accent-gold: #d4af37; /* Soft Gold */
    --text-dark: #2d2d2d; /* Charcoal Grey */
    --bg-cream: #f9f7f2; /* Parchment Paper White */
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--bg-cream);
    color: var(--text-dark);
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Cinzel', serif; /* Elegant Title Font */
    color: var(--primary-green);
    font-weight: 700;
}

/* =========================================
   2. RESPONSIVE HEADER & NAV (Bootstrap Customization)
   ========================================= */
.site-header {
    background-color: var(--primary-green);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Remove default Bootstrap padding */
.navbar {
    padding: 15px 0;
    background-color: var(--primary-green) !important;
}

/* Logo Styling */
.brand-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--accent-gold) !important; /* Force Gold color */
    font-weight: 700;
    letter-spacing: 1px;
}

    .brand-logo:hover {
        color: var(--white) !important;
    }

/* Link Styling */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85); /* Off-white text */
    font-family: 'Lato', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    padding-right: 1rem;
    padding-left: 1rem;
    transition: color 0.3s ease;
}

    .navbar-dark .navbar-nav .nav-link:hover,
    .navbar-dark .navbar-nav .nav-link:focus {
        color: var(--accent-gold); /* Gold on hover */
    }

/* Special Style for Admin Link */
.admin-link {
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    margin-left: 10px; /* Space it out slightly */
}

/* Mobile Menu Toggler (Hamburger) */
.navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(212, 175, 55, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    /* Note: The code above creates a GOLD colored hamburger icon */
}

/* Mobile Dropdown Spacing */
@media (max-width: 768px) {
    .navbar-collapse {
        padding-top: 15px;
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: 10px;
    }

    .admin-link {
        margin-left: 0; /* Reset margin on mobile */
        margin-top: 10px;
        display: inline-block;
    }
}

/* Logo Styling */
.brand-logo a {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

    .brand-logo a:hover {
        color: var(--white);
    }

/* Navigation Links */
.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

    .nav-link:hover {
        color: var(--accent-gold);
        border-bottom: 2px solid var(--accent-gold);
    }

.admin-link {
    background-color: rgba(255,255,255,0.1);
    padding: 5px 15px;
    border-radius: 4px;
}

/* =========================================
   3. MAIN CONTENT LAYOUT
   ========================================= */
.main-content {
    flex: 1; /* Pushes footer to bottom */
    padding-bottom: 40px;
}

/* Container spacing fix */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* =========================================
   4. FOOTER
   ========================================= */
.site-footer {
    background-color: #1a261b; /* Darker Green */
    color: #a0a0a0;
    text-align: center;
    padding: 40px 0;
    margin-top: auto;
    border-top: 4px solid var(--accent-gold);
}

    .site-footer p {
        margin: 5px 0;
    }

.student-id {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* =========================================
   5. BUTTONS & COMPONENTS
   ========================================= */
.btn-primary {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s;
}

    .btn-primary:hover {
        background-color: #1e2b20;
        border-color: #1e2b20;
        transform: translateY(-2px);
    }
