/* --- Global Variables --- */
:root {
    --primary-color: #2563eb;   /* A nice modern blue */
    --bg-color: #f8fafc;        /* Light gray background */
    --text-color: #1e293b;      /* Dark slate text */
    --surface-color: #ffffff;   /* White backgrounds for cards */
}

/* --- Reset & Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* --- Typography --- */
h1, h2 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

p {
    margin-bottom: 1rem;
}

/* --- Navigation Header --- */
.site-header {
    background: var(--surface-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hidden by default on desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* --- Main Layout --- */
.container {
    display: flex;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    gap: 2rem;
}

.content {
    flex: 3; /* Takes up 3/4 of the space */
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sidebar {
    flex: 1; /* Takes up 1/4 of the space */
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sidebar ul {
    list-style: none;
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    background: var(--surface-color);
    box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    /* Stack the main content and sidebar vertically */
    .container {
        flex-direction: column;
    }

    /* Mobile Menu Styling */
    .menu-toggle {
        display: block; /* Show the hamburger button */
    }

    .nav-links {
        display: none; /* Hide links initially */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface-color);
        text-align: center;
        padding: 1rem 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }

    /* Toggled via JavaScript */
    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 0.75rem 0;
    }
}
