/* ============================================================
   app.css — Estilos del sistema DETENIDOS
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:        #1a1f36;
  --navy-mid:    #2d3461;
  --primary-c:   #3b46c4;
  --danger-soft: #fff0f0;
}

/* ── Base ───────────────────────────────────────────────────── */
body {
  background-color: #f4f5f9;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: .925rem;
  color: #2d2d3a;
}

/* ── Navbar ─────────────────────────────────────────────────── */
.bg-dark-navy {
  background-color: var(--navy) !important;
}
.navbar .nav-link {
  color: #a0aec0 !important;
  border-radius: 6px;
  transition: background .15s, color .15s;
  font-size: .875rem;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  background: var(--navy-mid);
  color: #fff !important;
}
.text-primary-custom { color: #6c8ef7 !important; }
.bg-secondary-custom { background: var(--navy-mid) !important; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  border-radius: 12px;
}
.card-header {
  border-radius: 12px 12px 0 0 !important;
}

/* ── Stat cards ─────────────────────────────────────────────── */
.stat-card {
  border-radius: 12px !important;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.stat-icon {
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}
.stat-value { line-height: 1; }

/* ── Tabla ──────────────────────────────────────────────────── */
.table th {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6c7a99;
  font-weight: 600;
}
.tr-reincidente td { background: #fff5f5 !important; }
.table-danger-soft { background: #fff5f5 !important; }

/* ── Drop zone ──────────────────────────────────────────────── */
.drop-zone {
  border: 2px dashed #cbd5e0;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--primary-c);
  background: #eef1ff;
}

/* ── Timeline ───────────────────────────────────────────────── */
.timeline-container .timeline-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.timeline-container .timeline-item:last-child {
  border-bottom: none;
}
.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e53e3e;
  margin-top: 4px;
  flex-shrink: 0;
}

/* ── Login ──────────────────────────────────────────────────── */
.login-body {
  background: linear-gradient(135deg, #1a1f36 0%, #2d3461 100%);
  min-height: 100vh;
}
.login-card {
  border-radius: 16px !important;
  background: #fff;
}
.login-icon {
  width: 64px;
  height: 64px;
  background: #eef1ff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.login-icon i {
  font-size: 2rem;
  color: var(--primary-c);
}

/* ── Badges ─────────────────────────────────────────────────── */
.badge { font-weight: 500; }

/* ── Form ───────────────────────────────────────────────────── */
.form-control,
.form-select,
.input-group-text {
  border-radius: 8px !important;
}
.input-group .form-control { border-radius: 0 !important; }
.input-group :first-child  { border-radius: 8px 0 0 8px !important; }
.input-group :last-child   { border-radius: 0 8px 8px 0 !important; }
.input-group-text.bg-transparent { border-right: none; }
.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 3px rgba(59,70,196,.15);
  border-color: var(--primary-c);
}

/* ── Btn ────────────────────────────────────────────────────── */
.btn { border-radius: 8px !important; }
.btn-primary {
  background: var(--primary-c);
  border-color: var(--primary-c);
}
.btn-primary:hover {
  background: #2d3799;
  border-color: #2d3799;
}

/* ── Objeto ajustado ────────────────────────────────────────── */
.object-fit-cover { object-fit: cover; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 767px) {
  main.container-fluid { padding: 1rem !important; }
  .stat-card .stat-value { font-size: 1.5rem; }
}
