/* ===============================
   RESET BÁSICO
=============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
}

body {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #e5e7eb;
  min-height: 100vh;
}

/* ===============================
   NAVBAR SUPERIOR
=============================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  background: linear-gradient(135deg, #020617, #0f172a);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.35);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  font-weight: 700;
  color: #22c55e;
  font-size: 16px;
  margin-right: 12px;
}

.nav-left a {
  color: #cbd5f5;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-left a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.nav-left a.active {
  background: #22c55e;
  color: #022c22;
  font-weight: 600;
}

.nav-right button {
  background: #ef4444;
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-right button:hover {
  background: #dc2626;
}

/* ===============================
   CONTENEDOR PRINCIPAL
=============================== */
.content {
  padding: 24px;
  max-width: 1400px;
  margin: auto;
}

/* ===============================
   TÍTULOS
=============================== */
h1 {
  font-size: 26px;
  margin-bottom: 16px;
  font-weight: 700;
}

h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

/* ===============================
   FORMULARIOS
=============================== */
.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

select,
textarea,
input {
  background: rgba(255,255,255,0.95);
  color: #020617;
  padding: 9px 12px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 14px;
}

select {
  min-width: 180px;
}

textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
}

/* ===============================
   BOTONES
=============================== */
button {
  border: none;
  cursor: pointer;
}

button.add {
  background: #22c55e;
  color: #022c22;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  margin-top: 10px;
  transition: all 0.2s ease;
}

button.add:hover {
  background: #16a34a;
}

/* ===============================
   TABLAS
=============================== */
table {
  width: 100%;
  margin-top: 24px;
  border-collapse: collapse;
  background: rgba(2,6,23,0.6);
  border-radius: 12px;
  overflow: hidden;
}

thead {
  background: rgba(15,23,42,0.9);
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 14px;
}

th {
  font-weight: 600;
  color: #e5e7eb;
}

tbody tr:hover {
  background: rgba(255,255,255,0.04);
}

/* ===============================
   BOTONES DE ACCIONES
=============================== */
td button {
  font-size: 13px;
}

td button + button {
  margin-left: 6px;
}

/* ===============================
   TARJETAS (DASHBOARD)
=============================== */
.card {
  background: rgba(15,23,42,0.85);
  border-radius: 16px;
  padding: 20px;
  min-height: 100px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.card .value {
  font-size: 28px;
  font-weight: 700;
  color: #22c55e;
}

/* ===============================
   SCROLLBAR (BONUS)
=============================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #020617;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* ===============================
   RESPONSIVE BÁSICO
=============================== */
@media (max-width: 900px) {
  .form-row {
    flex-direction: column;
  }

  .nav-left {
    gap: 10px;
  }

  .nav-left a {
    font-size: 13px;
    padding: 6px 8px;
  }
}

