:root {
  --vt-bg: #f3f5fa;
  --vt-primary: #4f5fee;
  --vt-primary-dark: #3c4bd6;
  --vt-primary-soft: #eef0ff;
  --vt-success: #16a672;
  --vt-success-soft: #e5f7ef;
  --vt-warning: #b8860b;
  --vt-warning-soft: #fdf3d9;
  --vt-danger: #dc3f4c;
  --vt-danger-soft: #fdeaec;
  --vt-text-muted: #7c8493;
  --vt-radius: 14px;
  --vt-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 4px 16px rgba(17, 24, 39, .06);
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--vt-primary);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  background-color: var(--vt-bg);
}

/* ---------- Sidebar ---------- */
.app-sidebar {
  background-color: #10162b !important;
}

.app-sidebar .brand-link {
  border-bottom-color: rgba(255, 255, 255, .08);
}

.app-sidebar .sidebar-menu > .nav-item > .nav-link {
  border-radius: 10px;
  margin: 2px 10px;
  width: auto;
  color: rgba(255, 255, 255, .75);
}

.app-sidebar .sidebar-menu > .nav-item > .nav-link:hover {
  background-color: rgba(255, 255, 255, .06);
  color: #fff;
}

.app-sidebar .sidebar-menu > .nav-item > .nav-link.active {
  background: linear-gradient(135deg, var(--vt-primary), var(--vt-primary-dark));
  color: #fff;
  box-shadow: 0 4px 12px rgba(79, 95, 238, .35);
}

.app-sidebar .sidebar-menu > .nav-item > .nav-link .nav-icon {
  font-size: 1.1rem;
}

.vt-sidebar-footer {
  padding: .9rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.vt-sidebar-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vt-primary), #7b5fe8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
}

/* AdminLTE hace .card-title { float: left } pensando en usarlo junto a .card-tools
   flotado a la derecha. Como aquí se usa como encabezado normal dentro del cuerpo
   de la tarjeta, el float saca el resto del contenido de flujo (se ve pegado o
   montado). Se anula globalmente. */
.card-title {
  float: none;
  display: block;
}

/* ---------- Navbar ---------- */
.app-header.navbar {
  border-bottom: 1px solid #e9ebf2;
}

/* ---------- Cards ---------- */
.card {
  border: none;
  border-radius: var(--vt-radius);
  box-shadow: var(--vt-shadow);
}

.card.card-primary.card-outline {
  border-top: none;
}

.card-header {
  background-color: transparent;
  border-bottom: 1px solid #eef0f5;
  border-top-left-radius: var(--vt-radius) !important;
  border-top-right-radius: var(--vt-radius) !important;
}

/* ---------- Buttons ---------- */
.btn {
  border-radius: 10px;
}

.btn-primary {
  background-color: var(--vt-primary);
  border-color: var(--vt-primary);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: var(--vt-primary-dark) !important;
  border-color: var(--vt-primary-dark) !important;
}

/* ---------- Hero banner ---------- */
.vt-hero {
  background: linear-gradient(120deg, var(--vt-primary) 0%, #7b5fe8 100%);
  border-radius: var(--vt-radius);
  color: #fff;
  padding: 2rem 2.25rem;
  box-shadow: 0 10px 30px rgba(79, 95, 238, .28);
}

.vt-hero .btn-light {
  border-radius: 10px;
  font-weight: 600;
}

/* ---------- Stat cards ---------- */
.vt-stat-card {
  border-radius: var(--vt-radius);
  box-shadow: var(--vt-shadow);
  background: #fff;
  padding: 1.25rem 1.4rem;
}

.vt-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.vt-stat-label {
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--vt-text-muted);
  font-weight: 600;
}

.vt-stat-value {
  font-size: 1.6rem;
  font-weight: 700;
}

/* ---------- Soft pill badges ---------- */
.badge-soft-success {
  background-color: var(--vt-success-soft);
  color: var(--vt-success);
  font-weight: 600;
  border-radius: 999px;
  padding: .35em .8em;
}

.badge-soft-warning {
  background-color: var(--vt-warning-soft);
  color: var(--vt-warning);
  font-weight: 600;
  border-radius: 999px;
  padding: .35em .8em;
}

.badge-soft-danger {
  background-color: var(--vt-danger-soft);
  color: var(--vt-danger);
  font-weight: 600;
  border-radius: 999px;
  padding: .35em .8em;
}

.badge-soft-secondary {
  background-color: #eef0f5;
  color: var(--vt-text-muted);
  font-weight: 600;
  border-radius: 999px;
  padding: .35em .8em;
}

/* ---------- Tables ---------- */
.table thead th {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--vt-text-muted);
  border-bottom-width: 1px;
  font-weight: 700;
}

/* ---------- Upload dropzone ---------- */
.vt-dropzone {
  border: 2px dashed #d7dbe8;
  border-radius: var(--vt-radius);
  background: #fafbfe;
  padding: 3rem 1.5rem;
  text-align: center;
  transition: border-color .15s ease, background-color .15s ease;
  cursor: pointer;
}

.vt-dropzone:hover, .vt-dropzone.vt-dropzone-active {
  border-color: var(--vt-primary);
  background: var(--vt-primary-soft);
}

.vt-dropzone i {
  font-size: 2.5rem;
  color: var(--vt-primary);
}

/* ---------- Checklist ---------- */
.vt-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .6rem 0;
  border-bottom: 1px solid #f1f2f7;
}

.vt-checklist-item:last-child {
  border-bottom: none;
}

.vt-checklist-item.vt-done .vt-checklist-title {
  text-decoration: line-through;
  color: var(--vt-text-muted);
}

/* ---------- Login ---------- */
.vt-login-body {
  background: #0b0f1e;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
}

.vt-login-wrapper {
  width: 100%;
  max-width: 460px;
}

.vt-login-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--vt-primary), #7b5fe8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  box-shadow: 0 8px 24px rgba(79, 95, 238, .45);
  margin-bottom: 1rem;
}

.vt-login-title {
  color: #fff;
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: .35rem;
}

.vt-login-title span {
  background: linear-gradient(120deg, #7ea2ff, #a685ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.vt-login-subtitle {
  color: rgba(255, 255, 255, .55);
  font-size: .95rem;
}

.vt-login-card {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

.vt-login-label {
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--vt-text-muted);
  font-weight: 700;
  display: block;
  margin-bottom: .35rem;
}

.vt-btn-login {
  background: linear-gradient(90deg, #4759e8, #7b5fe8);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: .8rem 1rem;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(71, 89, 232, .35);
}

.vt-btn-login:hover, .vt-btn-login:focus {
  color: #fff;
  filter: brightness(1.08);
}

.vt-login-footer {
  color: rgba(255, 255, 255, .35);
  font-size: .8rem;
}

/* Campo de login unificado (ícono flotando dentro del input, sin costuras de input-group) */
.vt-input-wrap {
  position: relative;
}

.vt-input-wrap .vt-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa1b1;
  font-size: 1.05rem;
  pointer-events: none;
}

.vt-input-wrap .vt-input {
  border: 1px solid #e6e8f0;
  background: #f9fafc;
  border-radius: 12px;
  padding: .7rem 1rem .7rem 2.5rem;
  height: auto;
}

.vt-input-wrap .vt-input:focus {
  background: #fff;
  border-color: var(--vt-primary);
}

.vt-input-wrap .vt-input.vt-input-icon-end {
  padding-right: 2.75rem;
}

.vt-input-wrap .vt-input-icon-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #9aa1b1;
  padding: .25rem .4rem;
  line-height: 1;
}

.vt-input-wrap .vt-input-icon-btn:hover {
  color: var(--vt-text-muted);
}

@media print {
  .app-sidebar,
  .app-header,
  .vt-no-imprimir,
  .dataTables_filter,
  .dataTables_length,
  .dataTables_paginate,
  .dataTables_info,
  table.dataTable thead .sorting:before,
  table.dataTable thead .sorting:after {
    display: none !important;
  }

  .app-main {
    margin-left: 0 !important;
    padding: 0 !important;
  }

  .table-responsive {
    overflow: visible !important;
  }

  table.dataTable {
    width: 100% !important;
  }
}
