:root {
    --bg-primary: #0a0e14;
    --bg-secondary: #151b24;
    --bg-tertiary: #1e2733;
    --accent: #00ff88;
    --accent-dim: #00cc6e;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --border: #30363d;
    --danger: #ff4757;
    --warning: #ffa502;
    --info: #00d2ff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

select, datalist {
    max-height: 200px;
    overflow-y: auto;
}

.food-entry-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.container { max-width: 1000px; margin: 0 auto; padding: 2rem; }

.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

h1, h2, h3 { color: var(--accent); margin-bottom: 1rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }

/* Dashboard Stats */
.big-number { font-family: 'JetBrains Mono', monospace; font-size: 3rem; font-weight: 700; line-height: 1; margin: 0.5rem 0; }
.positive { color: var(--accent); }
.negative { color: var(--danger); }
.stat-label { color: var(--text-secondary); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* Forms */
.input-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text-secondary); }
input, select {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.8rem;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    outline: none;
}
input:focus { border-color: var(--accent); }

button {
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}
button:hover { background: var(--accent-dim); transform: translateY(-1px); }
.button-secondary { background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border); }
.button-danger { background: #3a1a1e; color: var(--danger); border: 1px solid var(--danger); }

/* Tabs */
.tabs { display: flex; gap: 0.5rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.tab { background: none; border: none; color: var(--text-secondary); padding: 0.5rem 1rem; cursor: pointer; border-radius: 4px; font-weight: 600; text-transform: none; }
.tab.active { color: var(--accent); background: rgba(0, 255, 136, 0.1); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Progress Bar */
.progress-container { height: 12px; background: var(--bg-tertiary); border-radius: 6px; margin: 1rem 0; position: relative; overflow: hidden; border: 1px solid var(--border); }
.progress-bar { height: 100%; background: var(--accent); width: 0%; transition: width 0.3s; }
.goal-marker { position: absolute; top: 0; bottom: 0; width: 2px; background: white; z-index: 2; box-shadow: 0 0 5px rgba(255,255,255,0.5); }

/* Modal */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.auth-card { width: 100%; max-width: 400px; }

header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.user-info { display: flex; align-items: center; gap: 1rem; }
