/* Veganika Dashboard — merged styles from spring_schedule_2026.html + dashboard.html */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg: #f5f3f0;
    --bg-card: #ffffff;
    --text: #2D2A26;
    --primary: #3F5B94;
    --primary-dark: #2D3A5C;
    --accent: #C49A3C;
    --accent-light: #D4C9A8;
    --accent-bg: #EDE7D9;
    --green: #3F5B94;
    --green-light: #D4C9A8;
    --green-bg: #EDE7D9;
    --orange: #e65100;
    --blue: #3F5B94;
    --purple: #7b1fa2;
    --border: #f0eeeb;
    --muted: #888;
}

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

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* ── Navigation ────────────────────────────────────────────── */
nav {
    background: var(--green);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-brand {
    font-size: 18px;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
    margin-right: 24px;
}

.nav-links {
    display: flex;
    gap: 4px;
    flex-grow: 1;
}

.nav-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-links a:hover { background: rgba(255,255,255,0.15); color: white; }
.nav-links a.active { background: rgba(255,255,255,0.25); color: white; }

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-name {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    font-weight: 500;
}

.nav-logout {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 12px;
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    transition: all 0.2s;
}

.nav-logout:hover { background: rgba(255,255,255,0.15); color: white; }

/* ── Container ─────────────────────────────────────────────── */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px;
}

/* ── Page Header ───────────────────────────────────────────── */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--green);
}

.year-selector {
    display: flex;
    gap: 6px;
}

.year-btn {
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: var(--green);
    background: var(--green-bg);
    transition: all 0.2s;
}

.year-btn:hover { background: var(--green-light); }
.year-btn.active { background: var(--green); color: white; }

/* ── Filter Bar ────────────────────────────────────────────── */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.filter-bar label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.month-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.month-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    font-family: inherit;
    font-weight: 500;
    background: white;
    color: #555;
    cursor: pointer;
    transition: all 0.15s;
}

.month-btn:hover {
    border-color: var(--green);
    color: var(--green);
}

.month-btn.active {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

/* ── KPI Cards ─────────────────────────────────────────────── */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.kpi-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border-top: 3px solid var(--green);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.kpi-value {
    font-size: 26px;
    font-weight: 700;
    margin: 8px 0;
    color: var(--text);
}

.kpi-value.kpi-small { font-size: 16px; }

.kpi-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.kpi-detail {
    font-size: 14px;
    color: var(--green);
    font-weight: 600;
}

/* ── Chart Cards ───────────────────────────────────────────── */
.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.chart-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.chart-card.full-width { grid-column: 1 / -1; }

.chart-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 12px;
}

.chart-container {
    position: relative;
    height: 320px;
    width: 100%;
}

.chart-container.chart-wide { height: 360px; }
.chart-container.chart-tall { height: 500px; }

.chart-controls {
    margin-top: 12px;
    text-align: center;
}

.chart-controls select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    background: white;
}

/* ── Login Page ────────────────────────────────────────────── */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--green-bg) 0%, var(--bg) 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
}

.login-brand {
    font-size: 28px;
    font-weight: 700;
    color: var(--green);
    letter-spacing: 3px;
    margin-bottom: 4px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 28px;
}

.login-error {
    background: #ffebee;
    color: #c62828;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-bg);
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: var(--green);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.btn-login:hover { background: var(--primary-dark); }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    font-size: 12px;
    color: #aaa;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    nav { flex-wrap: wrap; padding: 10px 16px; }
    .nav-brand { margin-right: auto; }
    .nav-links { order: 3; width: 100%; }
    .chart-grid { grid-template-columns: 1fr; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .page-header { flex-direction: column; gap: 12px; align-items: flex-start; }
}
