:root {
    /* Colors */
    --primary: #FF5733;
    /* Red-Orange */
    --secondary: #FFC300;
    /* Yellow-Amber */
    --background: #FFFFFF;
    --text-main: #000000;
    --text-muted: #666666;
    --border: #EEEEEE;
    --success: #28a745;
    --danger: #dc3545;

    /* Spacing */
    --header-height: 60px;
    --bottom-nav-height: 60px;
    --safe-area-bottom: env(safe-area-inset-bottom);

    /* Typography */
    --font-heading: 'Varela Round', sans-serif;
    --font-body: 'Quicksand', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
}

p, button, input, select, textarea {
    font-family: var(--font-body);
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: calc(var(--bottom-nav-height) + 20px);
    /* Space for bottom nav */
}

/* Utilities */
.container {
    padding: 0 16px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hidden {
    display: none !important;
}

/* Progress Bar Styles */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.progress-container {
    width: 200px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin: 16px 0 8px 0;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

/* Mobile First Layout Adjustments */
@media (min-width: 768px) {
    #app {
        padding-bottom: 0;
        /* No bottom nav on desktop usually, or different layout */
        /* padding-top removed to fix double spacing with fixed header */
    }
}