/* ── Reset básico ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #f5f5f0;
}

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 0.75rem 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
}
nav { display: flex; align-items: center; gap: 1.25rem; font-size: 0.9rem; }
nav a { color: #444; }
.btn-nav {
  background: #1a1a1a;
  color: #fff !important;
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
}
.btn-nav:hover { background: #333; text-decoration: none; }

/* ── Main ─────────────────────────────────────────────────── */
main.container { padding-top: 2rem; padding-bottom: 3rem; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid #e5e5e5;
  padding: 1.25rem 0;
  font-size: 0.85rem;
  color: #888;
  text-align: center;
}

/* ── Auth forms ───────────────────────────────────────────── */
.auth-box {
  max-width: 420px;
  margin: 2rem auto;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 2rem;
}
.auth-box h1 { font-size: 1.4rem; margin-bottom: 1.5rem; }
.auth-alt { margin-top: 1.25rem; font-size: 0.9rem; color: #555; }

.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  color: #333;
}
.form-group input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.15s;
}
.form-group input:focus {
  outline: none;
  border-color: #2563eb;
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 0.65rem;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.15s;
}
.btn-primary:hover { background: #333; }

.form-errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  list-style: none;
  font-size: 0.875rem;
  color: #b91c1c;
}
.form-errors li + li { margin-top: 0.25rem; }

/* ── Dashboard ────────────────────────────────────────────── */
.dashboard h1 { font-size: 1.5rem; margin-bottom: 1.5rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.stat-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}
.stat-num { display: block; font-size: 2rem; font-weight: 600; }
.stat-label { font-size: 0.8rem; color: #888; }

.dashboard-section { margin-bottom: 2rem; }
.dashboard-section h2 { font-size: 1.1rem; margin-bottom: 0.75rem; }

.problem-list { list-style: none; }
.problem-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
}
.problem-list li:last-child { border-bottom: none; }

.diff-badge {
  font-size: 0.75rem;
  background: #f0f0f0;
  color: #555;
  padding: 0.1rem 0.5rem;
  border-radius: 99px;
}
.muted { color: #888; font-size: 0.85rem; }
