/* ==============================================================================
   FILE 9: css/main.css
   Global Variables, Reset, and Layout Structure
   ============================================================================== */

:root {
    /* Color Palette */
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --success: #1e8e3e;
    --danger: #d93025;
    --warning: #f9ab00;
    --background: #f4f6f9;
    --surface: #ffffff;
    --text-main: #202124;
    --text-muted: #5f6368;
    --border-color: #dadce0;
    
    /* Dimensions */
    --header-height: 60px;
    --bottom-nav-height: 70px;
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-bottom: calc(var(--bottom-nav-height) + 20px); /* Space for bottom nav */
}

/* --- Layout --- */
.app-header {
    height: var(--header-height);
    background-color: var(--surface);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.header-status {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.app-content {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Views --- */
.view {
    display: none;
    animation: fadeIn 0.3s ease;
}

.view.active-view {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}