/* Design System (DESIGN_SYSTEM_SPEC.md + branding Simões Consultoria)
   Paleta do logo (logosite.png): laranja #F68E34 sobre branco — discreto, sem gradientes */
:root {
    --bg: #faf6f1;
    --surface: #ffffff;
    --text: #1f2328;
    --muted: #6a737d;
    --border: #e6ddd2;
    --accent: #f68e34;
    --accent-strong: #e07a1f;
    --accent-ink: #2a1b08;
    --danger: #9b2c2c;
    --ok: #2d6a4f;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.container { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem; }

.topnav { background: var(--surface); border-bottom: 1px solid var(--border); }
.topnav-inner { max-width: 1100px; margin: 0 auto; padding: 0.6rem 1rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 600;
    color: var(--text); text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand:hover { color: var(--accent-strong); }
.nav-links { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; align-items: center; }
.nav-links a { color: var(--text); text-decoration: none; }
.nav-links a:hover { color: var(--accent); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
    padding: 1.25rem; margin-bottom: 1rem; }

.stack { display: flex; flex-direction: column; gap: 0.6rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.8rem; }
.inline-form { display: inline; margin: 0; }

label { font-size: 0.875rem; font-weight: 500; }
input, select { padding: 0.45rem 0.6rem; border: 1px solid var(--border); border-radius: 6px;
    font: inherit; background: var(--surface); color: var(--text); }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.btn { display: inline-block; padding: 0.5rem 1rem; border-radius: 6px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text); cursor: pointer; font: inherit; text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.link-btn { background: none; border: none; color: var(--accent); cursor: pointer; font: inherit; padding: 0; }
.link-btn:hover { color: var(--accent-strong); }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--border); }
.table th { font-size: 0.75rem; text-transform: uppercase; color: var(--muted); }

.badge { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.75rem; }
.badge-in { background: #e3f0e8; color: var(--ok); }
.badge-out { background: #fdeeee; color: var(--danger); }

.muted { color: var(--muted); }
.alert { padding: 0.6rem 0.9rem; border-radius: 6px; margin-bottom: 1rem; }
.alert-error { background: #fdeeee; color: var(--danger); border: 1px solid #f5c6c6; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-label { font-size: 0.8rem; color: var(--muted); }
.stat-value { font-size: 1.8rem; font-weight: 700; }

.daily-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.bar { flex: 1; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 4px;
    display: flex; flex-direction: column; justify-content: flex-end; }
.bar-label { color: var(--muted); font-size: 0.7rem; text-align: center; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.login-card { width: 100%; max-width: 360px; text-align: center; }
.login-logo { display: block; margin: 0 auto 0.75rem; height: 64px; width: auto; }
