/* css/main.css */
/* This file now contains only truly global styles and layout. */

/* --- THEME & GLOBAL STYLES --- */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #f0f2f5;
    --surface-color: #ffffff;
    --text-color: #212529;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --shadow: 0 2px 5px rgba(0,0,0,0.08);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0 0 80px 0; /* Space for bottom nav */
    background-color: var(--background-color);
    color: var(--text-color);
}

/* --- LAYOUT COMPONENTS --- */
header {
    background-color: var(--primary-color);
    height: 10px; /* Simplified header bar */
}

main {
    padding: 1rem;
}

main h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background-color: var(--surface-color);
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    z-index: 100;
}

.mobile-nav button {
    background: none;
    border: none;
    color: var(--secondary-color);
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    flex-grow: 1;
}

.mobile-nav button.active {
    color: var(--primary-color);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.page-header h2 {
    margin: 0;
}

/* --- UTILITY & MISC STYLES --- */

/* NEW: Added back the global hidden class to fix the modal bug */
.hidden {
    display: none;
}