/* Variables globales para modo oscuro */
[data-bs-theme="dark"] {
  /* Color principal oscuro */
  --ar-dark: #2f2f2f;
  --ar-dark-rgb: 47, 47, 47;

  /* Fondo del body en modo oscuro */
  --ar-body-bg: #2f2f2f;
  --ar-body-bg-rgb: 47, 47, 47;

  /* Grises y variaciones */
  --ar-gray-900: #2f2f2f;
  --ar-gray-900-rgb: 47, 47, 47;
}

/* IMPORTANTE: Eliminar o comentar esta línea que hace el navbar sólido */
/* [data-bs-theme="dark"] .navbar {
  background-color: #2f2f2f !important;
} */

/* Solo cambiar los colores cuando el navbar está "stuck" (pegajoso al hacer scroll) */
[data-bs-theme="dark"] .navbar:not([data-bs-theme="light"]),
[data-bs-theme="dark"] .navbar-stuck[data-bs-theme="light"] {
  --ar-navbar-stuck-bg: #2f2f2f;
  --ar-navbar-collapse-bg: #2f2f2f;
}

/* Mantener el navbar transparente por defecto */
[data-bs-theme="dark"] .navbar:not(.navbar-stuck) {
  background-color: transparent !important;
}

/* Cuando el navbar se vuelve "stuck" al hacer scroll */
[data-bs-theme="dark"] .navbar.navbar-stuck {
  background-color: rgba(47, 47, 47, 0.95) !important; /* #2f2f2f con transparencia */
  backdrop-filter: blur(10px);
}

/* Para el menú móvil desplegable */
@media (max-width: 991.98px) {
  [data-bs-theme="dark"] .navbar-collapse.show,
  [data-bs-theme="dark"] .navbar-collapse.collapsing {
    background-color: #2f2f2f;
  }
}

/* Ajustar otros componentes oscuros si es necesario */
[data-bs-theme="dark"] {
  /* Tarjetas */
  --ar-card-bg: #383838;

  /* Modales */
  --ar-modal-bg: #383838;

  /* Dropdowns */
  --ar-dropdown-bg: #383838;

  /* Tooltips */
  --ar-tooltip-bg: #2f2f2f;

  /* Popovers */
  --ar-popover-bg: #383838;
}

/* ========================================
   ESTILOS PERSONALIZADOS PARA SELECT2
   ======================================== */

/* Contenedor principal y single select */
.select2-container--default .select2-selection--single {
  display: block;
  width: 100%;
  height: auto;
  padding: 0.825rem 1rem;
  font-size: calc(var(--ar-body-font-size) * 0.875);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ar-body-color);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: rgba(0, 0, 0, 0);
  background-clip: padding-box;
  border: var(--ar-border-width) solid var(--ar-gray-400);
  border-radius: var(--ar-border-radius);
  transition: border-color 0.15s ease-in-out;
  position: relative;
}

/* Texto renderizado en single select */
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--ar-body-color);
  line-height: 1.4;
  padding-left: 0;
  padding-right: 50px;
  font-size: calc(var(--ar-body-font-size) * 0.875);
}

/* Placeholder */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--ar-gray-600);
  font-size: calc(var(--ar-body-font-size) * 0.875);
}

/* Arrow/Caret */
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 10px;
  width: 20px;
  z-index: 1;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--ar-gray-600) transparent transparent transparent;
  border-style: solid;
  border-width: 5px 4px 0 4px;
  height: 0;
  left: 50%;
  margin-left: -4px;
  margin-top: -2px;
  position: absolute;
  top: 50%;
  width: 0;
}

/* Clear button para single select */
.select2-container--default .select2-selection--single .select2-selection__clear {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 35px;
  color: var(--ar-gray-600);
  cursor: pointer;
  font-weight: normal;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  z-index: 2;
  transition: color 0.15s ease-in-out;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
  color: var(--ar-danger);
}

/* Multiple select - Contenedor principal */
.select2-container--default .select2-selection--multiple {
  width: 100%;
  min-height: calc(2.5rem + 2px);
  padding: 0.325rem 2.5rem 0.325rem 0.5rem;
  font-size: calc(var(--ar-body-font-size) * 0.875);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ar-body-color);
  background-color: rgba(0, 0, 0, 0);
  border: var(--ar-border-width) solid var(--ar-gray-400);
  border-radius: var(--ar-border-radius);
  transition: border-color 0.15s ease-in-out;
  cursor: text;
  position: relative;
}

/* Container de opciones en multiple */
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  box-sizing: border-box;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: inline;
}

/* Clear button para multiple select */
.select2-container--default .select2-selection--multiple .select2-selection__clear {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 10px;
  color: var(--ar-gray-600);
  cursor: pointer;
  font-weight: normal;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.05);
  z-index: 2;
  transition: all 0.15s ease-in-out;
}

.select2-container--default .select2-selection--multiple .select2-selection__clear:hover {
  color: white;
  background-color: var(--ar-danger);
  transform: translateY(-50%) scale(1.1);
}

/* Tags en multiple select - Estilo mejorado sin interferir con la estructura */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: #009378;
  border: 1px solid #009378;
  border-radius: calc(var(--ar-border-radius) * 0.75);
  color: white;
  cursor: default;
  display: inline-block;
  margin-left: 5px;
  margin-top: 5px;
  padding: 0;
  padding-left: 22px; /* Espacio para el botón × nativo */
  padding-right: 8px;
  position: relative;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
  font-size: calc(var(--ar-body-font-size) * 0.875);
  line-height: 1.6;
  transition: all 0.2s ease;
}

/* Hover effect para los tags */
.select2-container--default .select2-selection--multiple .select2-selection__choice:hover {
  background-color: #007860;
  border-color: #007860;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Remove button en tags - Estilizando el botón nativo */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  border-top-left-radius: calc(var(--ar-border-radius) * 0.75);
  border-bottom-left-radius: calc(var(--ar-border-radius) * 0.75);
  color: white;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
  padding: 0 6px;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover,
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:focus {
  background-color: rgba(255, 67, 67, 0.5);
  color: white;
  outline: none;
}

/* Texto del tag */
.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
  cursor: default;
  padding-left: 2px;
  padding-right: 5px;
}

/* Input de búsqueda en multiple */
.select2-container--default .select2-selection--multiple .select2-search--inline {
  float: left;
  margin-top: 5px;
}

.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
  box-sizing: border-box;
  border: none;
  font-size: calc(var(--ar-body-font-size) * 0.875);
  margin-top: 0;
  margin-left: 5px;
  padding: 0;
  max-width: 100%;
  resize: none;
  height: 1.4rem;
  vertical-align: bottom;
  font-family: inherit;
  overflow: hidden;
  word-break: keep-all;
  background: transparent;
  outline: 0;
  color: var(--ar-body-color);
}

/* Placeholder cuando no hay selección */
.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
  color: var(--ar-gray-600);
  font-size: calc(var(--ar-body-font-size) * 0.875);
  float: left;
  margin-top: 5px;
  margin-left: 5px;
}

/* Focus state */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: rgba(0, 148, 120, 0.5);
  box-shadow: 0 0 0 0.25rem rgba(0, 148, 120, 0.25);
  outline: 0;
}

/* Open state */
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--multiple {
  border-color: rgba(0, 148, 120, 0.5);
  box-shadow: 0 0 0 0.25rem rgba(0, 148, 120, 0.25);
}

/* Dropdown */
.select2-container--default .select2-dropdown {
  background-color: var(--ar-body-bg);
  border: var(--ar-border-width) solid var(--ar-gray-400);
  border-radius: var(--ar-border-radius);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Search field en dropdown */
.select2-container--default .select2-search--dropdown .select2-search__field {
  padding: 0.825rem 1rem;
  font-size: calc(var(--ar-body-font-size) * 0.875);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ar-body-color);
  background-color: rgba(0, 0, 0, 0);
  border: var(--ar-border-width) solid var(--ar-gray-400);
  border-radius: var(--ar-border-radius);
  box-sizing: border-box;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: rgba(0, 148, 120, 0.5);
  box-shadow: 0 0 0 0.25rem rgba(0, 148, 120, 0.25);
  outline: 0;
}

/* Resultados */
.select2-container--default .select2-results__option {
  padding: 0.5rem 1rem;
  font-size: calc(var(--ar-body-font-size) * 0.875);
  color: var(--ar-body-color);
  background-color: transparent;
}

/* Highlighted (hover) */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #009378;
  color: white;
}

/* Selected */
.select2-container--default .select2-results__option--selected {
  background-color: rgba(0, 148, 120, 0.1);
}

/* Disabled option */
.select2-container--default .select2-results__option[aria-disabled="true"] {
  color: var(--ar-gray-600);
  cursor: default;
}

/* Disabled state */
.select2-container--default.select2-container--disabled .select2-selection--single,
.select2-container--default.select2-container--disabled .select2-selection--multiple {
  background-color: var(--ar-gray-100);
  cursor: not-allowed;
  opacity: 0.65;
}

.select2-container--default.select2-container--disabled .select2-selection__clear {
  display: none;
}

.select2-container--default.select2-container--disabled .select2-selection--multiple .select2-selection__choice__remove {
  display: none;
}

/* Loading state */
.select2-container--default .select2-results__option.loading-results {
  padding: 1rem;
  text-align: center;
  color: var(--ar-gray-600);
}

/* No results message */
.select2-container--default .select2-results__message {
  padding: 1rem;
  text-align: center;
  color: var(--ar-gray-600);
  font-size: calc(var(--ar-body-font-size) * 0.875);
}

/* Alineación con otros inputs */
.select2-container {
  width: 100% !important;
}

/* Fix altura para single select */
.select2-container .select2-selection--single {
  height: auto !important;
}

/* Error state - validación */
.is-invalid + .select2-container--default .select2-selection--single,
.is-invalid + .select2-container--default .select2-selection--multiple,
.was-validated .form-select:invalid + .select2-container--default .select2-selection--single,
.was-validated .form-select:invalid + .select2-container--default .select2-selection--multiple {
  border-color: var(--ar-danger);
}

.is-valid + .select2-container--default .select2-selection--single,
.is-valid + .select2-container--default .select2-selection--multiple,
.was-validated .form-select:valid + .select2-container--default .select2-selection--single,
.was-validated .form-select:valid + .select2-container--default .select2-selection--multiple {
  border-color: var(--ar-success);
}

/* Modo oscuro */
[data-bs-theme="dark"] .select2-container--default .select2-selection--single,
[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple {
  background-color: rgba(0, 0, 0, 0);
  border-color: var(--ar-gray-400);
  color: var(--ar-body-color);
}

[data-bs-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered,
[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  color: var(--ar-body-color);
}

[data-bs-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__placeholder,
[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__placeholder {
  color: var(--ar-gray-600);
}

[data-bs-theme="dark"] .select2-container--default .select2-dropdown {
  background-color: var(--ar-body-bg);
  border-color: var(--ar-gray-400);
}

[data-bs-theme="dark"] .select2-container--default .select2-search--dropdown .select2-search__field {
  background-color: rgba(0, 0, 0, 0);
  border-color: var(--ar-gray-400);
  color: var(--ar-body-color);
}

[data-bs-theme="dark"] .select2-container--default .select2-results__option {
  color: var(--ar-body-color);
}

[data-bs-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #009378;
  color: white;
}

[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: #00b596;
  border-color: #00b596;
  color: white;
}

[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice:hover {
  background-color: #009378;
  border-color: #009378;
}

[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  background-color: rgba(255, 255, 255, 0.15);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  background-color: rgba(255, 67, 67, 0.5);
  color: white;
}

[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__clear {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--ar-gray-400);
}

[data-bs-theme="dark"] .select2-container--default .select2-selection--multiple .select2-selection__clear:hover {
  background-color: var(--ar-danger);
  color: white;
}

[data-bs-theme="dark"] .select2-container--default.select2-container--disabled .select2-selection--single,
[data-bs-theme="dark"] .select2-container--default.select2-container--disabled .select2-selection--multiple {
  background-color: var(--ar-gray-800);
  opacity: 0.65;
}

/* ========================================
   ESTILOS COMUNES DEL DASHBOARD
   ======================================== */

/* ----------------------------------------
   A. CARDS Y ESTADÍSTICAS
   ---------------------------------------- */

/* Stats Cards - Para dashboards y listas */
.stats-card {
  border-radius: 10px;
  transition: transform 0.3s;
}

.stats-card:hover {
  transform: translateY(-5px);
}

.info-card {
  transition: transform 0.2s;
}

.info-card:hover {
  transform: translateY(-2px);
}

.stat-card {
  border-radius: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

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

.stat-value {
  font-size: 1.5rem;
  font-weight: 600;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--ar-gray-600);
}

/* ----------------------------------------
   B. FILTROS DE BÚSQUEDA
   ---------------------------------------- */

/* Filter Section - Para todas las páginas de listado */
.filter-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

[data-bs-theme="dark"] .filter-section {
  background: rgba(255, 255, 255, 0.03);
}

/* ----------------------------------------
   C. CHARTS Y GRÁFICOS
   ---------------------------------------- */

/* Chart Container - Para dashboards con gráficos */
.chart-container {
  position: relative;
  height: 300px;
  margin-top: 20px;
}

/* ----------------------------------------
   D. ESTADOS DE CARGA
   ---------------------------------------- */

/* Loading States - Para operaciones asíncronas */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-overlay.show {
  display: flex;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--ar-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}




/* ----------------------------------------
   E. BADGES Y ETIQUETAS
   ---------------------------------------- */

/* Badges - Para estados y contadores */
.badge-count {
  font-weight: 500;
  padding: 0.35em 0.65em;
}

.lang-tag {
  display: inline-block;
  padding: 0.2rem 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.25rem;
  margin-right: 0.25rem;
}

.lang-tag.lang-es {
  background-color: #ffc107;
  color: #000;
}

.lang-tag.lang-en {
  background-color: #007bff;
  color: #fff;
}

.lang-tag.lang-pt {
  background-color: #28a745;
  color: #fff;
}

/* ----------------------------------------
   F. TABLAS Y ACCIONES
   ---------------------------------------- */

/* Table Actions - Para botones en tablas */
.table-actions .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* Bulk Actions - Para acciones masivas */
.bulk-actions {
  border-radius: 0.375rem;
}

/* DataTables Customization */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--ar-primary) !important;
  border-color: var(--ar-primary) !important;
  color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--ar-primary) !important;
  border-color: var(--ar-primary) !important;
  color: white !important;
}

/* ----------------------------------------
   G. EDITOR DE CONTENIDO
   ---------------------------------------- */

/* Quill Editor - Para editores de texto enriquecido */
.quill-editor {
  min-height: 300px;
  border-radius: 0.375rem;
}

.ql-toolbar {
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
}

[data-bs-theme="dark"] .ql-toolbar {
  background: rgba(255, 255, 255, 0.05);
}

.ql-container {
  border-bottom-left-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
  font-size: 1rem;
}

[data-bs-theme="dark"] .ql-container {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--ar-gray-700);
}

[data-bs-theme="dark"] .ql-editor {
  color: var(--ar-body-color);
}

/* ----------------------------------------
   H. INDICADORES DE IDIOMA
   ---------------------------------------- */

/* Language Indicators - Para contenido multiidioma */
.language-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}

.language-indicator.has-content {
  background-color: var(--ar-success);
}

.language-indicator.no-content {
  background-color: var(--ar-gray-400);
}

/* ----------------------------------------
   I. UTILIDADES DE TEXTO
   ---------------------------------------- */

/* Text Truncation - Para limitar texto largo */
.text-truncate-3-lines {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comment-body,
.contact-message {
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ----------------------------------------
   J. ACTIVIDAD Y TIMELINE
   ---------------------------------------- */

/* Activity Timeline - Para logs de actividad */
.activity-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--ar-gray-200);
}

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

.activity-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.875rem;
}

/* ----------------------------------------
   K. SECCIONES AI/AUTOMATIZACIÓN
   ---------------------------------------- */

/* AI Section - Para funcionalidades de IA */
.ai-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.ai-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ----------------------------------------
   L. QUICK TIPS Y AYUDA
   ---------------------------------------- */

/* Quick Tips - Para mensajes informativos */
.quick-tip {
  background: var(--bs-info-bg-subtle);
  border-left: 4px solid var(--bs-info);
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 0.375rem;
}

/* ----------------------------------------
   M. DASHBOARD ESPECÍFICOS
   ---------------------------------------- */

/* Stat Cards - Para dashboard principal */
.stat-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 24px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.stat-icon i {
  font-size: 1.5rem;
  line-height: 1;
  z-index: 2;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Dashboard Activity Items */
.activity-list .activity-item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.activity-list .activity-item:last-child {
  border-bottom: none;
}

.activity-list .activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.activity-list .activity-icon i {
  z-index: 2;
}

/* ----------------------------------------
   N. FORMULARIOS DE CREACIÓN
   ---------------------------------------- */

/* Tab navigation para formularios */
.nav-tabs .nav-link {
  font-weight: 500;
}

.nav-tabs .nav-link.active {
  color: var(--bs-primary);
}

/* Form groups mejorados */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--bs-body-color);
}

/* Language indicators específicos para tabs pequeños */
.nav-tabs .language-indicator {
  width: 8px;
  height: 8px;
  margin-right: 0.5rem;
}

/* ----------------------------------------
   O. FILTROS Y BÚSQUEDA
   ---------------------------------------- */

/* Filter section dark theme */
[data-bs-theme="dark"] .filter-section {
  background: rgba(255,255,255,0.03);
}

/* DataTables customization para filtros */
.dataTables_wrapper .dataTables_filter input {
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
}

.dataTables_wrapper .dataTables_length select {
  border-radius: 0.375rem;
  padding: 0.25rem 0.5rem;
}

/* ----------------------------------------
   P. OVERLAYS Y MODALES
   ---------------------------------------- */

/* Loading overlay */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#loading.show {
  display: flex;
}

/* ----------------------------------------
   FIN DE ESTILOS PERSONALIZADOS
   ---------------------------------------- */
