:root {
    /* Dream App Color Palette */
    --primary-navy: #001d3d;
    --primary-red: #d90429;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-dark: #001d3d;
    --text-muted: #6c757d;
    --border-light: #e9ecef;
    
    --success: #2b9348;
    --error: #d90429;
    --warning: #fb8500;
    --info: #0077b6;
    
    /* Shadows & Radius */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --radius-md: 16px;
    --radius-sm: 8px;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
    padding-bottom: 80px; /* Space for bottom nav */
}

h1, h2, h3, .logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Header - Deep Navy */
#main-header {
    background-color: var(--primary-navy);
    color: white;
    padding: var(--spacing-md) var(--spacing-lg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-shield {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-size: 1.2rem;
}

.icon-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    position: relative;
}

.badge-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    background-color: var(--primary-red);
    border-radius: 50%;
    border: 2px solid var(--primary-navy);
}

/* Greeting Bar - Light bg but part of main flow */
.greeting-bar {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-white);
    margin-bottom: var(--spacing-sm);
}

.greeting-bar h1 {
    font-size: 1.5rem;
    color: var(--primary-navy);
}

.greeting-bar p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Common Layouts */
#view-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-bottom: var(--spacing-md);
}

/* Buttons */
.btn {
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-red);
    color: white;
}

.btn-primary:hover {
    filter: brightness(1.1);
}

.full-width {
    width: 100%;
}

/* Bottom Nav */
#bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-white);
    display: flex;
    justify-content: space-around;
    padding: var(--spacing-sm) 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 100;
}

.nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    width: 20%;
    position: relative;
}

.nav-item.active {
    color: var(--primary-navy);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--primary-red);
    border-radius: 0 0 4px 4px;
}

.nav-icon {
    font-size: 1.4rem;
}

/* Utility */
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.hidden { display: none !important; }

/* Forms & Inputs */
input, select, textarea {
    font-family: inherit;
    font-size: 1rem;
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background-color: var(--bg-white);
    color: var(--text-dark);
    width: 100%;
    transition: 0.2s;
    outline: none;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--info);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}

