/* styles.css - Paleta tecnológica y relajante */
/* Tipografía desde Google Fonts (importada en el HTML) */

:root{
  --bg: #0f1724;            /* fondo oscuro muy suave */
  --card: #0d1117;          /* tarjetas */
  --muted: #9aa7b2;         /* texto secundario */
  --accent: #6ee7b7;        /* verde-agua relajante */
  --accent-2: #7dd3fc;      /* azul suave */
  --glass: rgba(255,255,255,0.04);
  --glass-2: rgba(255,255,255,0.02);
  --danger: #ff6b6b;
  --radius: 12px;
  --shadow: 0 6px 18px rgba(2,6,23,0.6);
  --smooth: cubic-bezier(.2,.9,.3,1);
}

* { box-sizing: border-box; }
html,body { height:100%; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg, #071226 0%, #091426 100%);
  color: #e6eef6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  padding: 28px;
}

/* Container principal */
.container {
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: calc(var(--radius) + 4px);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.03);
}

/* Header */
.header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.header h1 {
  margin:0;
  font-size:20px;
  letter-spacing:0.2px;
  color: #dffcf4;
}
.header .sub { color:var(--muted); font-size:13px; }

/* Formulario */
.form-card {
  background: linear-gradient(180deg,var(--glass), var(--glass-2));
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.02);
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.form-card input[type="text"],
.form-card input[type="date"],
.form-card input[type="number"] {
  width:100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  color: #e6eef6;
  outline: none;
  transition: all .24s var(--smooth);
  box-shadow: none;
  font-size: 14px;
}
.form-card input::placeholder { color: rgba(230,238,246,0.45); }

.form-card input:focus {
  transform: translateY(-2px);
  border-color: rgba(125,211,252,0.9);
  box-shadow: 0 6px 22px rgba(125,211,252,0.04);
}

/* Full-width controls */
.form-card .full { grid-column: 1 / -1; display:flex; gap:10px; }
.btn {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight:600;
  transition: transform .18s var(--smooth), box-shadow .18s var(--smooth);
}

/* Primary button */
.btn.primary {
  background: linear-gradient(90deg, rgba(110,231,183,0.14), rgba(125,211,252,0.06));
  color: var(--accent);
  border: 1px solid rgba(110,231,183,0.12);
}
.btn.primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(110,231,183,0.06); }

/* Danger / cancel */
.btn.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.03);
}
.btn.ghost:hover { transform: translateY(-2px); }

/* Tabla moderna */
.table-wrap {
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.03);
}
table {
  width:100%;
  border-collapse: collapse;
  min-width: 900px;
  background: transparent;
}
thead th {
  padding: 12px 16px;
  text-align:left;
  font-size:13px;
  color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.00));
}
tbody tr {
  transition: background .18s var(--smooth), transform .18s var(--smooth);
}
tbody tr:hover {
  background: linear-gradient(90deg, rgba(125,211,252,0.02), rgba(110,231,183,0.01));
  transform: translateY(-3px);
}
td {
  padding: 12px 16px;
  font-size: 14px;
  color: #e6eef6;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

/* Acciones */
.actions { display:flex; gap:8px; align-items:center; }
.icon-btn {
  background: rgba(255,255,255,0.02);
  padding:8px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.02);
  cursor:pointer;
  transition: all .15s var(--smooth);
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.icon-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(2,6,23,0.6); }

/* Small badges */
.badge {
  font-size:12px;
  padding:6px 8px;
  border-radius:999px;
  background: rgba(125,211,252,0.06);
  color: var(--accent-2);
  border: 1px solid rgba(125,211,252,0.06);
}

/* Notificaciones (toast) */
.toast {
  position: fixed;
  right: 20px;
  bottom: 24px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(13,17,23,0.9);
  color: #e6eef6;
  box-shadow: 0 8px 30px rgba(2,6,23,0.7);
  border: 1px solid rgba(125,211,252,0.06);
  z-index: 9999;
  display: flex;
  gap: 12px;
  align-items:center;
  min-width: 240px;
}

/* Modal update */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,0.6);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 9998;
}
.modal {
  width: 420px;
  background: linear-gradient(180deg, #071226, #081325);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: 0 10px 40px rgba(2,6,23,0.8);
}

/* Responsive */
@media (max-width: 900px) {
  .form-card { grid-template-columns: 1fr; }
  table { min-width: 700px; }
  .modal { width: 92%; }
}