/* ============================================================
   FlaskApp — Clean, simple styling
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    background: #f0f2f5;
    color: #1a1a2e;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Navbar --- */
.navbar {
    background: #1a1a2e;
    color: #fff;
    padding: 0 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.nav-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}
.nav-links a {
    color: #ccc;
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: #fff;
}

/* --- Container / Main --- */
.container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
    flex: 1;
    width: 100%;
}

/* --- Flash Alerts --- */
.alert {
    padding: 0.85rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}
.alert-success  { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-warning  { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.alert-info     { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* --- Auth Card (Login / Register) --- */
.auth-card {
    max-width: 420px;
    margin: 3rem auto;
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.auth-card h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}
.auth-switch {
    text-align: center;
    margin-top: 1.2rem;
    font-size: 0.95rem;
    color: #666;
}
.auth-switch a {
    color: #4361ee;
    text-decoration: none;
    font-weight: 600;
}

/* --- Forms --- */
.form-group {
    margin-bottom: 1.2rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
}
.form-group input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}
.form-group input:focus {
    outline: none;
    border-color: #4361ee;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: #4361ee; color: #fff; }
.btn-primary:hover { background: #3a56d4; }
.btn-danger  { background: #e63946; color: #fff; }
.btn-danger:hover  { background: #c0392b; }
.btn-outline {
    background: #fff;
    color: #4361ee;
    border: 2px solid #4361ee;
}
.btn-outline:hover { background: #4361ee; color: #fff; }
.btn-full { width: 100%; }

/* --- Dashboard --- */
.dashboard-header {
    margin-bottom: 2rem;
}
.dashboard-header h1 {
    font-size: 1.8rem;
}
.subtitle {
    color: #666;
    margin-top: 0.3rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    text-align: center;
}
.stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
}
.stat-value.small {
    font-size: 1rem;
}
.stat-label {
    color: #888;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

/* Dashboard Sections */
.dashboard-section {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.dashboard-section h2 {
    margin-bottom: 1rem;
}
.actions-row {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 1.5rem;
    color: #999;
    font-size: 0.85rem;
}
