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 #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: #f8fafc;
  color: #1e293b;
}

/* Navbar pulido */
.navbar-custom {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar-custom .nav-link {
  color: #cbd5e1 !important;
  font-weight: 500;
  padding: 0.5rem 0.85rem !important;
  border-radius: 0.375rem;
  transition: all 0.2s ease-in-out;
  white-space: nowrap;
}

.navbar-custom .nav-link:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.08);
}

.navbar-custom .nav-link.active {
  color: #38bdf8 !important;
  background-color: rgba(56, 189, 248, 0.1);
}

/* Tarjetas y Contenedores */
.card {
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

/* Tablas modernas */
.table {
  vertical-align: middle;
}

.table thead.table-dark th {
  background-color: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 1rem;
}

.table tbody tr {
  transition: background-color 0.15s ease-in-out;
}

.table tbody tr:hover {
  background-color: #f1f5f9;
}

.table td {
  padding: 0.75rem 1rem;
}

/* Insignias de Estado */
.badge-status {
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge-status-activo {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.badge-status-suspendido {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Botones de acción */
.btn-action-group .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  border-radius: 0.375rem;
}

/* Paginación limpia */
.pagination .page-link {
  border-radius: 0.375rem;
  margin: 0 2px;
  color: #475569;
  border-color: #e2e8f0;
}

.pagination .page-item.active .page-link {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: #ffffff;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}