/* public/css/style.css */
:root {
  --bg: #f6f6f8;
  --card: #ffffff;
  --accent: #b2312f;
  --muted: #666;
  --success: #2a9d48;
  --danger: #d03b3b;
  --max-width: 1000px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* {box-sizing: border-box;}
body {
  margin:0;
  background: var(--bg);
  color:#222;
  line-height:1.4;
  padding:20px;
}

.center {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:100vh;
}

.card {
  background: var(--card);
  padding:18px;
  border-radius:10px;
  box-shadow: 0 6px 18px rgba(20,20,30,0.06);
  max-width: 720px;
  width:100%;
  margin: 10px auto;
}

.topbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  background: var(--card);
  padding:10px 18px;
  border-radius:8px;
  margin-bottom:14px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

h1, h2, h3 { color: var(--accent); margin:8px 0 12px; }

label { display:block; margin:8px 0; font-size:0.95rem; }
input[type="text"], input[type="password"], input[type="number"], input[type="date"], textarea, select {
  width:100%;
  padding:8px 10px;
  border:1px solid #e0e0e5;
  border-radius:6px;
  margin-top:6px;
}

button, .button-alt {
  background: var(--accent);
  color: white;
  border: none;
  padding:8px 14px;
  border-radius:6px;
  cursor:pointer;
  margin-top:8px;
  text-decoration:none;
  display:inline-block;
}

.button-alt {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.success { color: var(--success); }
.error { color: var(--danger); }
.muted { color: var(--muted); }

.tabla { width:100%; border-collapse: collapse; margin-top:10px; }
.tabla thead { background:#fafafa; text-align:left; }
.tabla th, .tabla td { padding:8px 10px; border-bottom:1px solid #f0f0f2; font-size:0.95rem; }

.inline-form label { display:inline-block; margin-right:10px; }
.inline-form input, .inline-form select { display:inline-block; width:auto; vertical-align:middle; }

/* Responsive */
@media (max-width:720px) {
  .topbar { flex-direction:column; align-items:flex-start; gap:8px; }
  .inline-form label { display:block; margin-bottom:8px; }
}
