/* Global System Styles 
   Contains: Variables, Resets, and Utility Classes
*/

:root {
    /* Updated to Dark Blue as requested */
    --primary-color: #0d2c4d; /* Deep Navy Blue */
    --secondary-color: #f44336;
    --bg-color: #f4f6f8;
    --text-color: #333;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --content-width: 1200px; /* Standard width for alignment */
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
}

/* Custom "App Dark Blue" class to replace standard w3-blue */
.app-dark-blue {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* Header Specifics */
.app-header {
    background-color: var(--primary-color);
    color: white;
    padding: 0; /* Removing padding to make it narrower */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);

    /* ADDED: Ensures header stays on top of other content */
    position: relative; 
    z-index: 1000;
}

.app-header-content {
    max-width: var(--content-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px; /* Fixed narrow height */
}

.app-logo {
    height: 40px;
    margin-right: 10px;
    vertical-align: middle;
}

/* Content Container for Perfect Alignment */
.app-container {
    max-width: var(--content-width);
    margin: 20px auto;
    padding: 0 16px;
}

/* Navigation Links */
.nav-link {
    text-decoration: none;
    color: rgba(255,255,255,0.8);
    padding: 0 15px;
    font-size: 14px;
    line-height: 50px; /* Vertically center */
    display: inline-block;
    transition: 0.2s;
}
.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

/* W3.CSS Overrides (if needed later) */
.w3-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- RESPONSIVE NAVIGATION --- */

/* Wrapper for the links to control showing/hiding */
.app-nav-links {
    display: flex;
    align-items: center;
}

/* The Hamburger Icon (Hidden on Desktop) */
.app-hamburger {
    display: none;
    color: white;
    font-size: 24px;
    text-decoration: none;
    padding: 0 15px;
    line-height: 50px;
    cursor: pointer;
}

/* Mobile Devices (Max width 768px) */
@media screen and (max-width: 768px) {
    /* Allow header to grow vertically when menu opens */
    .app-header-content {
        flex-wrap: wrap; 
        height: auto; 
        padding-bottom: 0;
    }

    /* Hide the links by default on mobile */
    .app-nav-links {
        display: none;
        width: 100%; /* Full width */
        flex-direction: column; /* Stack vertically */
        background-color: var(--primary-color); /* Match header background */
    }

    /* This class is added by JS when user clicks Hamburger */
    .app-nav-links.responsive {
        display: flex;
    }

    /* Style the links for Mobile (Vertical List) */
    .nav-link {
        display: block;
        width: 100%;
        text-align: left;
        padding: 12px 15px;
        border-top: 1px solid rgba(255,255,255,0.1); /* Separator line */
    }
    
    /* Show the Hamburger Icon */
    .app-hamburger {
        display: block;
        margin-left: auto; /* Push to the far right */
    }
}