/* ==========================================================================
   ESTILO INSTITUCIONAL MOPT MEJORADO
   ========================================================================== */
:root {
  /* 🎨 Colores principales institucionales */
  --primary-color: #1c1e4d;      /* Azul institucional profundo */
  --primary-dark: #121435;       /* Azul más oscuro para contrastes y hovers */
  --primary-light: #2c2e7a;      /* Azul claro institucional para acentos */
  --secondary-color: #d2d2d2;    /* Gris de contraste institucional */
  --accent-color: #313945;       /* Gris pizarra institucional */

  /* ✨ Acentos adicionales de estado */
  --accent-danger: #e63946;
  --accent-danger-light: #ff7676;
  --highlight-color: #2dd4bf;

  /* 🩶 Tonos de texto */
  --text-light: #f9fafb;
  --text-muted: #a3aab5;
  --text-dark: #111827;

  /* 🌌 Fondos oscuros y claros basados en la paleta pizarra #313945 */
  --light-bg: #f7f9fc;
  --dark-bg: #313945;
  --dark-card: #252a34;
  --dark-hover: #313945;
  --dark-border: #3e4857;

  /* 📐 Dimensiones y efectos */
  --sidebar-width: 250px;
  --sidebar-collapsed-width: 70px;
  --transition-speed: 0.3s;

  /* 💫 Sombras y brillos */
  --shadow-color: rgba(0, 0, 0, 0.4);
  --glow-primary: 0 0 10px rgba(210, 210, 210, 0.4);
  --glow-accent: 0 0 10px rgba(44, 46, 122, 0.3);
}

body {
  font-family: 'Nunito Sans', 'Segoe UI', sans-serif;
  background-color: #f7f9fc;
  margin: 0;
  /* display: flex; */
  overflow-x: hidden;
  transition: background-color 0.3s ease;
}



/* ===== SIDEBAR MEJORADO ===== */
.app-sidebar {
  background: var(--primary-color);
  color: var(--text-light);
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  /* Flex column para controlar el layout estricto */
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  /* Importante para evitar que el contenido empuje el footer fuera de la pantalla; cambiamos a visible para no recortar el botón */
  overflow: visible;
}

.app-sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
}

/* Nuevo contenedor para el cuerpo del sidebar (logo, search, menu) */
.sidebar-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  /* Ocupa todo el espacio disponible */
  overflow: hidden;
  /* Evita que el contenido desborde este contenedor */
  min-height: 0;
  /* Crítico para permitir scroll en hijos flex */
}

.app-sidebar__user {
  text-align: center;
  padding: 1.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  /* No encoger */
}

.app-sidebar__user img {
  display: initial !important;
}

.app-sidebar__user::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.user-pic {
  position: relative;
  display: inline-block;
}

.user-pic img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid var(--secondary-color);
  margin-bottom: 0.6rem;
  transition: all var(--transition-speed);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.user-pic:hover img {
  transform: scale(1.05);
  border-color: #f1d617;
}

.user-status {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 14px;
  height: 14px;
  background-color: #10b981;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.user-info h6 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  transition: opacity var(--transition-speed);
}

.user-info span {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: opacity var(--transition-speed);
}

.app-sidebar.collapsed .user-info h6,
.app-sidebar.collapsed .user-info span {
  opacity: 0;
  visibility: hidden;
}

.menu-search {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  flex-shrink: 0;
  /* No encoger */
}

.search-input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  background-color: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  color: var(--text-light);
  font-size: 0.85rem;
  transition: all var(--transition-speed);
}

.search-input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-icon {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.app-sidebar.collapsed .menu-search {
  padding: 0.5rem;
}

.app-sidebar.collapsed .search-input {
  padding: 0.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

.app-sidebar.collapsed .search-icon {
  display: none;
}

.menu-container {
  /* Flex grow forzoso para el scroll */
  flex-grow: 1;
  padding: 0.5rem 0;
  overflow: hidden;
  position: relative;
  min-height: 0;
  /* Esencial para Firefox/Chrome flex scrolling */
}

.menu-toggle-btn {
  position: absolute;
  top: 10px;
  right: -10px;
  width: 30px;
  height: 30px;
  background-color: #f1d617;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 1010; /* Mantener por encima del header */
  transition: all var(--transition-speed);
  flex-shrink: 0;
}

.menu-toggle-btn i {
  color: var(--primary-color) !important;
  font-size: 0.85rem;
}

.menu-toggle-btn:hover {
  background-color: #f1d617;
  transform: scale(1.1);
}

.menu-toggle-btn:hover i {
  color: var(--primary-color) !important;
}

/* ===== ESTILOS PARA EL MENÚ DINÁMICO MEJORADO ===== */
.slide {
  margin-bottom: 2px;
  list-style: none;
  position: relative;
  overflow: hidden;
}

.slide::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background-color: var(--secondary-color);
  transform: translateX(-100%);
  transition: transform var(--transition-speed);
}

.slide:hover::before {
  transform: translateX(0);
}

.side-menu__item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  color: var(--text-light);
  text-decoration: none;
  transition: all var(--transition-speed);
  position: relative;
  overflow: hidden;
}

.side-menu__item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(210, 210, 210, 0.3), transparent);
  transform: translateX(-100%);
  transition: transform var(--transition-speed);
}

.side-menu__item:hover::after {
  transform: translateX(0);
}

.side-menu__item:hover {
  color: #fff;
  padding-left: 1.5rem;
}

.side-menu__item.active {
  background-color: rgba(255, 255, 255, 0.20) !important;
  color: #ffffff !important;
  font-weight: 600;
  border-radius: 0.75rem;
  margin: 0 0.75rem;
}

.side-menu__icon {
  margin-right: 12px;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  transition: all var(--transition-speed);
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.side-menu__item:hover .side-menu__icon {
  transform: scale(1.2);
}

.side-menu__label {
  flex: 1;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity var(--transition-speed);
}

.app-sidebar.collapsed .side-menu__label {
  opacity: 0;
  visibility: hidden;
}

.menu-badge {
  background-color: var(--accent-color);
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 8px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

.angle {
  transition: transform var(--transition-speed);
  font-size: 0.8rem;
}

.slide.open .angle {
  transform: rotate(90deg);
}

.slide-menu {
  list-style: none;
  padding-left: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.open .slide-menu {
  max-height: 60vh;
  overflow-y: auto;
}

.slide-menu::-webkit-scrollbar {
  width: 4px;
}

.slide-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.slide-menu::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 2px;
}

.slide-menu li {
  list-style: none;
  position: relative;
}

.slide-item {
  display: block;
  padding: 0.6rem 1rem 0.6rem 3.5rem;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.88rem;
  transition: all var(--transition-speed);
  position: relative;
}

/* Reset styles for Themify Icons to display correctly */
.slide-item[class*="ti-"]::before {
  position: absolute;
  left: 2.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'themify' !important;
  background: none !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  border: none !important;
  font-size: 1rem;
  transition: all var(--transition-speed);
}

.slide-item:not([class*="ti-"])::before {
  content: '';
  position: absolute;
  left: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--text-muted);
  transition: all var(--transition-speed);
}

.slide-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding-left: 3.8rem;
  border-radius: 0.5rem;
  margin: 0.2rem 0.75rem;
}

.slide-item:not([class*="ti-"]):hover::before {
  background-color: #fff;
  transform: translateY(-50%) scale(1.5);
}

.slide-item[class*="ti-"]:hover::before {
  color: #fff;
  transform: translateY(-50%) scale(1.2);
}

.slide-item.active  {
  background-color: rgba(255, 255, 255, 0.20) !important;
  color: #ffffff !important;
  font-weight: 600;
  border-radius: 0.5rem;
  margin: 0.2rem 0.75rem;
}

.slide-item:not([class*="ti-"]).active::before {
  background-color: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, 0.6) !important;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  transform: translateY(-50%) scale(1.0) !important;
}

.slide-item[class*="ti-"].active::before {
  color: #ffffff;
  transform: translateY(-50%) scale(1.2);
}

/* Highlight parent menu item in gold when open */
/*.slide.open > .side-menu__item,
.slide.open > .side-menu__item .side-menu__icon,
.slide.open > .side-menu__item .angle {
  color: #f1d617 !important;
}*/

/* ===== HEADER MEJORADO ===== */
.header {
  background: #fff;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid #f3f4f6;
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  z-index: 999;
  transition: left var(--transition-speed), background-color 0.3s ease;
}

.header.expanded {
  left: var(--sidebar-collapsed-width);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb-item {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-speed);
}

.breadcrumb-item:hover {
  color: var(--secondary-color);
}

.breadcrumb-item.active {
  color: var(--primary-color);
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ===== SESSION TIMER ===== */
.session-timer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background-color: #f3f4f6;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  min-width: 80px;
  /* Asegurar ancho mínimo */
  justify-content: center;
}

.session-timer.warning {
  background-color: #fffbeb;
  color: #d97706;
  border-color: #fcd34d;
}

.session-timer.critical {
  background-color: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
  animation: pulse-red 1s infinite;
}

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

/* ============================= */

.notification-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color var(--transition-speed);
}

.notification-btn:hover {
  color: var(--secondary-color);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--accent-color);
  color: white;
  font-size: 0.6rem;
  padding: 2px 5px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.theme-toggle:hover {
  color: var(--secondary-color);
  transform: rotate(180deg);
}

/* Perfil de usuario */
.user-profile {
  position: relative;
}

.profile-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid var(--secondary-color);
  transition: all var(--transition-speed);
}

.profile-pic:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(210, 210, 210, 0.5);
}

/* Custom Scrollbar for profile menu options */
.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(163, 170, 181, 0.4);
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(163, 170, 181, 0.6);
}

/* Base Dropdown */
.profile-dropdown {
  position: absolute;
  right: 0;
  top: 55px;
  width: 325px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(229, 231, 235, 0.5);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
  overflow: visible;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px) scale(0.95);
  transform-origin: top right;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Header */
.profile-header {
  display: flex;
  align-items: center;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  position: relative;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.profile-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #f1d617 0%, transparent 100%);
}

.profile-header-pic {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  margin-right: 1rem;
  transition: transform 0.3s ease;
}

.profile-header:hover .profile-header-pic {
  transform: scale(1.05);
}

.profile-header-info {
  flex: 1;
  min-width: 0;
}

.profile-header-info h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
}

/* Modal de Selección de Perfil */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content-custom {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header-custom h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.modal-header-custom p {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.modal-profile-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.modal-profile-btn {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.15rem;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  color: #374151;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
}

.modal-profile-btn i {
  margin-right: 0.85rem;
  color: var(--primary-color);
  font-size: 1.15rem;
}

.modal-profile-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(28, 30, 77, 0.2);
}

.modal-profile-btn:hover i {
  color: white;
}

/* Dark Mode para Modal */
body.dark-mode .modal-content-custom {
  background: var(--dark-card);
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .modal-header-custom h2 {
  color: #ffffff;
}

body.dark-mode .modal-header-custom p {
  color: #9ca3af;
}

body.dark-mode .modal-profile-btn {
  background: #1f232b;
  border-color: rgba(255, 255, 255, 0.05);
  color: #e5e7eb;
}

body.dark-mode .modal-profile-btn i {
  color: var(--secondary-color);
}

body.dark-mode .modal-profile-btn:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--secondary-color);
  box-shadow: 0 4px 12px rgba(210, 210, 210, 0.2);
}

body.dark-mode .modal-profile-btn:hover i {
  color: var(--primary-color);
}

/* Contenedor del Dropdown de Perfiles en Cabecera (Unificado) */
.header-profile-dropdown-container {
  position: relative;
  display: inline-block;
  margin: 0.2rem 0 0.4rem;
}

.header-profile-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.65rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  animation: trigger-pulse 2s infinite;
}

.header-profile-dropdown-trigger:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-profile-dropdown-trigger .arrow-icon {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
  color: rgba(255, 255, 255, 0.9);
}

.header-profile-dropdown-container.open .arrow-icon {
  transform: rotate(180deg);
}

@keyframes trigger-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.header-profile-dropdown-menu {
  position: absolute;
  top: 115%;
  left: 0;
  min-width: 160px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 1010;
  display: none;
  flex-direction: column;
  padding: 0.25rem;
}

.header-profile-dropdown-container.open .header-profile-dropdown-menu {
  display: flex;
}

.header-profile-dropdown-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  color: #374151;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.header-profile-dropdown-item:hover {
  background-color: #f3f4f6;
  color: var(--primary-color);
}

.header-profile-dropdown-item.active {
  background-color: rgba(28, 30, 77, 0.08);
  color: var(--primary-color);
  font-weight: 700;
}

/* MODO OSCURO */
body.dark-mode .header-profile-dropdown-menu {
  background: var(--dark-card);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

body.dark-mode .header-profile-dropdown-item {
  color: #e5e7eb;
}

body.dark-mode .header-profile-dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--secondary-color);
}

body.dark-mode .header-profile-dropdown-item.active {
  background-color: rgba(210, 210, 210, 0.15);
  color: #ffffff;
}

.profile-info-text {
  margin: 0.2rem 0 0.4rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 1px 8px;
  border-radius: 12px;
}

.profile-metadata-container {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

.profile-meta-badge {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 500;
}

/* Menu items */
.profile-menu {
  padding: 0.5rem;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.85rem;
  color: #4b5563;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  margin: 1px 0;
}

.profile-menu-item i {
  width: 18px;
  margin-right: 0.75rem;
  color: #9ca3af;
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  justify-content: center;
}

.profile-menu-item:hover {
  background-color: #f3f4f6;
  color: var(--primary-color);
  padding-left: 1.1rem;
}

.profile-menu-item:hover i {
  color: var(--primary-color);
  transform: scale(1.1);
}

.profile-divider {
  height: 1px;
  background-color: #f3f4f6;
  margin: 0.4rem 0.5rem;
}

/* Switcher header */
.profile-switch-header {
  padding: 0.5rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  background: #f9fafb;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
  margin: 0.25rem 0;
}

/* Selected active profile item inside the menu list */
.profile-menu-item.active-profile {
  background-color: rgba(28, 30, 77, 0.08);
  color: var(--primary-color) !important;
  font-weight: 700;
}

.profile-menu-item.active-profile i {
  color: var(--primary-color);
}

.profile-menu-item.logout {
  color: #dc2626;
}

.profile-menu-item.logout i {
  color: #f87171;
}

.profile-menu-item.logout:hover {
  background-color: #fef2f2;
  color: #b91c1c;
}

.profile-menu-item.logout:hover i {
  color: #b91c1c;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: var(--sidebar-width);
  padding: 6rem 2rem 1.5rem;
  background-color: #f7f9fc;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left var(--transition-speed), background-color 0.3s ease;
}

.main-content-body {
  flex-grow: 1;
  width: 100%;
}

.main-content.expanded {
  margin-left: var(--sidebar-collapsed-width);
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all var(--transition-speed);
}

.card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.main-footer {
  width: 100%;
  padding: 1.25rem 2rem;
  margin-top: 3rem;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.025);
  flex-shrink: 0;
  font-family: 'Nunito Sans', 'Segoe UI', sans-serif;
  transition: all 0.3s ease;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.825rem;
  color: #6b7280;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-left p {
  margin: 0;
}

.footer-left strong {
  color: var(--primary-color);
  font-weight: 700;
  transition: color 0.3s ease;
}

.footer-version {
  background-color: rgba(28, 30, 77, 0.06);
  color: var(--primary-color);
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.footer-right p {
  margin: 0;
}

.footer-right span {
  font-weight: 600;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

/* Responsividad del footer */
@media (max-width: 640px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .footer-left {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ===== PERFECT SCROLLBAR ===== */
.ps__rail-y {
  opacity: 0.6 !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
}

.ps__thumb-y {
  background-color: rgba(200, 164, 75, 0.5) !important;
  border-radius: 3px !important;
}

/* ===== SIDEBAR BACKDROP ===== */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
}

.sidebar-backdrop.show {
  opacity: 1;
  visibility: visible;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .app-sidebar {
    width: var(--sidebar-width) !important;
    transform: translateX(-100%) !important;
    z-index: 1001 !important;
  }

  .app-sidebar.mobile-open {
    transform: translateX(0) !important;
  }

  .header {
    left: 0 !important;
  }

  .header.expanded {
    left: 0 !important;
  }

  .header-left h1 {
    display: none !important;
  }

  .breadcrumb {
    display: none !important;
  }

  .main-content {
    margin-left: 0 !important;
    padding: 4.3rem 0rem 1.5rem;
  }

  .main-content.expanded {
    margin-left: 0 !important;
  }

  .menu-toggle-btn {
    display: none !important;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

@media (min-width: 1025px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* ===== DARK MODE ===== */
body.dark-mode {
  background-color: var(--dark-bg);
  color: var(--text-light);
}

body.dark-mode .app-sidebar {
  background: #181b21; /* Pizarra ultra oscuro */
}

body.dark-mode .app-sidebar__user {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .menu-search {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .search-input {
  background-color: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .header {
  background-color: var(--dark-card);
  color: var(--text-light);
}

body.dark-mode #headerProfileName {
  color: #ffffff !important;
}

body.dark-mode #headerProfileRole {
  color: rgba(255, 255, 255, 0.6) !important;
}

body.dark-mode .card {
  background-color: var(--dark-card);
  color: var(--text-light);
}

body.dark-mode .main-content {
  background-color: var(--dark-bg);
}

body.dark-mode .profile-dropdown {
  background: rgba(37, 42, 52, 0.95);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

body.dark-mode .profile-header {
  background: linear-gradient(135deg, #1f232b 0%, #17191f 100%);
}

body.dark-mode .profile-switch-header {
  background: #1f232b;
  border-color: rgba(255, 255, 255, 0.05);
  color: #9ca3af;
}

body.dark-mode .profile-menu-item {
  color: #d1d5db;
}

body.dark-mode .profile-menu-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--secondary-color);
}

body.dark-mode .profile-menu-item:hover i {
  color: var(--secondary-color);
}

body.dark-mode .profile-menu-item.active-profile {
  background-color: rgba(210, 210, 210, 0.15);
  color: #ffffff !important;
}

body.dark-mode .profile-menu-item.active-profile i {
  color: var(--secondary-color);
}

body.dark-mode .profile-divider {
  background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .profile-menu-item.logout {
  color: #fca5a5;
}

body.dark-mode .profile-menu-item.logout:hover {
  background-color: rgba(220, 38, 38, 0.15);
  color: #f87171;
}

body.dark-mode .profile-menu-item.logout:hover i {
  color: #f87171;
}

body.dark-mode .breadcrumb-item {
  color: var(--text-muted);
}

body.dark-mode .breadcrumb-item.active {
  color: var(--secondary-color);
}

body.dark-mode .notification-btn {
  color: var(--text-muted);
}

body.dark-mode .theme-toggle {
  color: var(--text-muted);
}

/* ===== LOADING ANIMATION ===== */
.menu-loading {
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.menu-loading-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(210, 210, 210, 0.3);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== COLLAPSED MENU TOOLTIPS ===== */
.app-sidebar.collapsed .side-menu__item {
  justify-content: center;
  padding: 0.75rem;
}

.app-sidebar.collapsed .side-menu__icon {
  margin-right: 0;
}

.app-sidebar.collapsed .angle {
  display: none;
}

.app-sidebar.collapsed .slide-menu {
  display: none;
}

/* Estilos para el título del menú (h3) */
.side-menu h3 {
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 1.5rem 1.25rem 0.5rem;
  margin: 0;
  position: relative;
  display: flex;
  align-items: center;
}

.side-menu h3::after {
  display: none !important;
}

/* Estilo para cuando el menú está colapsado */
.app-sidebar.collapsed .side-menu h3 {
  padding: 1rem 0.75rem 0.5rem;
  text-align: center;
}

.app-sidebar.collapsed .side-menu h3::after {
  display: none;
}

/* Estilos para separadores entre secciones del menú */
.side-menu li:not(.slide) {
  position: relative;
  margin: 0.5rem 0;
}

/* Efecto hover para el título del menú */
.side-menu h3:hover {
  color: rgba(255, 255, 255, 0.6) !important;
}

.auth-logo {
  width: 200px;
  margin-bottom: 1rem;
}

/* Modo oscuro para footer modernizado */
body.dark-mode .main-footer {
  background-color: var(--dark-card);
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

body.dark-mode .footer-container {
  color: #9ca3af;
}

body.dark-mode .footer-left strong,
body.dark-mode .footer-right span {
  color: var(--secondary-color);
}

body.dark-mode .footer-version {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--secondary-color);
}

/* ==========================================
   LOADING ANIMATION & COUNTDOWN
   ========================================== */
.loading-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: var(--primary-color);
  animation: spin 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-ring:nth-child(2) {
  border-top-color: var(--secondary-color);
  animation-delay: 0.2s;
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
}

.spinner-ring:nth-child(3) {
  border-top-color: var(--primary-light);
  animation-delay: 0.4s;
  width: 40%;
  height: 40%;
  top: 30%;
  left: 30%;
}

.spinner-ring:nth-child(4) {
  border-top-color: var(--accent-color);
  animation-delay: 0.6s;
  width: 20%;
  height: 20%;
  top: 40%;
  left: 40%;
}

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

.countdown-container {
  width: 100%;
}

/* ===== TOM SELECT DARK MODE OVERRIDES ===== */
body.dark-mode .ts-wrapper .ts-control {
  background-color: #374151 !important;
  border: 1px solid #4b5563 !important;
  color: var(--text-light) !important;
  border-radius: 0.75rem !important; /* rounded-xl para coincidir con .form-input */
  box-shadow: none !important;
  padding: 0.45rem 0.75rem !important;
}

body.dark-mode .ts-wrapper.dropdown-active .ts-control {
  border-color: #4b5563 !important;
  background-color: #374151 !important;
  border-radius: 0.75rem 0.75rem 0 0 !important;
}

body.dark-mode .ts-wrapper.focus .ts-control {
  border-color: var(--secondary-color) !important;
  box-shadow: 0 0 0 3px rgba(210, 210, 210, 0.15) !important;
}

body.dark-mode .ts-wrapper .ts-control input {
  color: var(--text-light) !important;
}

body.dark-mode .ts-wrapper .ts-control input::placeholder {
  color: var(--text-muted) !important;
}

body.dark-mode .ts-wrapper.single .ts-control::after {
  border-color: var(--text-light) transparent transparent transparent !important;
}

body.dark-mode .ts-wrapper.single.dropdown-active .ts-control::after {
  border-color: transparent transparent var(--text-light) transparent !important;
}

body.dark-mode .ts-dropdown {
  background-color: var(--dark-card) !important;
  border: 1px solid #4b5563 !important;
  color: var(--text-light) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
  border-radius: 0 0 0.75rem 0.75rem !important;
  margin-top: -1px !important;
}

body.dark-mode .ts-dropdown .ts-dropdown-content {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

body.dark-mode .ts-dropdown .ts-dropdown-content::-webkit-scrollbar {
  width: 6px;
}

body.dark-mode .ts-dropdown .ts-dropdown-content::-webkit-scrollbar-track {
  background: transparent;
}

body.dark-mode .ts-dropdown .ts-dropdown-content::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

body.dark-mode .ts-dropdown .option {
  color: var(--text-light) !important;
  padding: 0.5rem 0.75rem !important;
}

body.dark-mode .ts-dropdown .option.active,
body.dark-mode .ts-dropdown .option:hover {
  background-color: var(--dark-hover) !important;
  color: var(--text-light) !important;
}

body.dark-mode .ts-dropdown .create:hover {
  background-color: var(--dark-hover) !important;
}

/* ===== CUSTOM SELECT-BUSCABLE DARK MODE OVERRIDES ===== */
body.dark-mode [id^="wrapper-"] button {
  background-color: var(--dark-card) !important;
  border-color: var(--dark-border) !important;
  color: var(--text-light) !important;
}

body.dark-mode [id^="wrapper-"] button:hover {
  background-color: var(--dark-hover) !important;
}

body.dark-mode [id^="wrapper-"] button span {
  color: var(--text-light) !important;
}

body.dark-mode [id^="wrapper-"] button span.text-gray-400 {
  color: var(--text-muted) !important;
}

body.dark-mode [id^="wrapper-"] div.absolute {
  background-color: var(--dark-card) !important;
  border-color: var(--dark-border) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode [id^="wrapper-"] input[type="text"] {
  background-color: var(--dark-bg) !important;
  border-color: var(--dark-border) !important;
  color: var(--text-light) !important;
}

body.dark-mode [id^="wrapper-"] input[type="text"]::placeholder {
  color: var(--text-muted) !important;
}

body.dark-mode [id^="wrapper-"] li {
  color: var(--text-light) !important;
}

body.dark-mode [id^="wrapper-"] li:hover {
  background-color: var(--dark-hover) !important;
  color: var(--secondary-color) !important;
}

body.dark-mode [id^="wrapper-"] li.bg-blue-50 {
  background-color: var(--primary-light) !important;
  color: #ffffff !important;
}

/* ===== INTERACTIVE KPI CARDS ===== */
.kpi-card {
  cursor: pointer;
  user-select: none;
  border: 1px solid #e5e7eb !important;
  border-left: 5px solid #e5e7eb !important;
  border-radius: 1rem !important;
  background-color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.kpi-card:hover {
  transform: translateY(-4px) !important;
  border-color: #d1d5db !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05) !important;
}

.kpi-card.active-kpi {
  background-color: #ffffff !important;
  border: 1px solid var(--primary-color) !important;
  border-left: 5px solid var(--primary-color) !important; /* Thick left border in primary color #1c1e4d */
  box-shadow: 0 4px 12px rgba(28, 30, 77, 0.06) !important;
  transform: translateY(-2px) !important;
}

.kpi-card .kpi-icon-container {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #f9fafb !important;
  border: 1px solid #f3f4f6;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-card #stat-total,
.kpi-card h4 {
  font-size: 2.25rem !important;
  font-weight: 800 !important;
  color: #111827 !important;
  margin-top: 0.25rem !important;
}

.kpi-card p {
  color: #9ca3af !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
}

/* Active KPI icon and text styling to match reference image */
.kpi-card.active-kpi .kpi-icon-container {
  background-color: #eff6ff !important;
  border-color: #dbeafe !important;
  color: #1c1e4d !important;
}
.kpi-card.active-kpi h4,
.kpi-card.active-kpi p {
  color: #1c1e4d !important;
}

/* Dark Mode support */
body.dark-mode .kpi-card {
  border-color: var(--dark-border) !important;
  background-color: var(--dark-card) !important;
  border-left: 1px solid var(--dark-border) !important;
}

body.dark-mode .kpi-card:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .kpi-card.active-kpi {
  background-color: var(--dark-card) !important;
  border-color: #abb2bb !important;
  border-left: 5px solid var(--secondary-color) !important; /* Active left border in dark mode secondary color */
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode .kpi-card.active-kpi h4,
body.dark-mode .kpi-card.active-kpi p {
  color: var(--secondary-color) !important;
}

body.dark-mode .kpi-card.active-kpi .kpi-icon-container {
  background-color: rgba(37, 99, 235, 0.15) !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
  color: var(--secondary-color) !important;
}

body.dark-mode .kpi-card .kpi-icon-container {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
body.dark-mode .kpi-card h4,
body.dark-mode .kpi-card #stat-total {
  color: #ffffff !important;
}
body.dark-mode .kpi-card p {
  color: var(--text-muted) !important;
}



/* ===== REDISEÑO PREMIUM DE LAYOUT Y COMPONENTES DASHBOARD ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: #6b7280;
  border-left: 1px solid #e5e7eb;
  padding-left: 1.25rem;
  margin-left: 0.25rem;
}
body.dark-mode .breadcrumb {
  border-left-color: var(--dark-border);
}
.header-left h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}
body.dark-mode .header-left h1 {
  color: #ffffff;
}

/* Sidebar Support Footer */
.sidebar-footer {
  background-color: rgba(255, 255, 255, 0.02) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  margin-top: auto;
  transition: background-color 0.2s;
}
.sidebar-footer:hover {
  background-color: rgba(255, 255, 255, 0.04) !important;
}
.sidebar-footer .rounded-full {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Circular outline action buttons */
.btn-action-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  color: #4b5563;
  font-size: 0.875rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  outline: none;
}
.btn-action-circle:hover {
  background-color: #f3f4f6;
  color: #111827;
  border-color: #d1d5db;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.btn-action-circle.btn-view:hover {
  background-color: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}
.btn-action-circle.btn-edit:hover {
  background-color: #fef3c7;
  color: #d97706;
  border-color: #fde68a;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.15);
}
.btn-action-circle.btn-delete:hover {
  background-color: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.15);
}
body.dark-mode .btn-action-circle {
  background-color: var(--dark-card);
  border-color: var(--dark-border);
  color: #9ca3af;
}
body.dark-mode .btn-action-circle:hover {
  background-color: var(--dark-hover);
  color: #ffffff;
  border-color: #4b5563;
}
body.dark-mode .btn-action-circle.btn-view:hover {
  background-color: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border-color: #2563eb;
}
body.dark-mode .btn-action-circle.btn-edit:hover {
  background-color: rgba(217, 119, 6, 0.15);
  color: #fbbf24;
  border-color: #d97706;
}
body.dark-mode .btn-action-circle.btn-delete:hover {
  background-color: rgba(220, 38, 38, 0.15);
  color: #fca5a5;
  border-color: #dc2626;
}

/* Floating Action Button */
.fab-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #059669;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  outline: none;
}
.fab-btn:hover {
  background-color: #047857;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5);
}
.fab-btn-blue {
  background-color: #2563eb;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}
.fab-btn-blue:hover {
  background-color: #1d4ed8;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}


/* Status dots indicators */
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  display: inline-block;
  flex-shrink: 0;
}

/* Dark Mode text contrast overrides for Tailwind text-gray classes */
body.dark-mode table td,
body.dark-mode table th,
body.dark-mode .card,
body.dark-mode .table-row-hover {
  color: var(--text-light);
}
body.dark-mode td.text-gray-900,
body.dark-mode td .text-gray-900,
body.dark-mode .card .text-gray-900 {
  color: #ffffff !important;
}
body.dark-mode td.text-gray-800,
body.dark-mode td .text-gray-800,
body.dark-mode .card .text-gray-800 {
  color: rgba(255, 255, 255, 0.9) !important;
}
body.dark-mode td.text-gray-700,
body.dark-mode td .text-gray-700,
body.dark-mode .card .text-gray-700 {
  color: rgba(255, 255, 255, 0.8) !important;
}
body.dark-mode td.text-gray-600,
body.dark-mode td .text-gray-600,
body.dark-mode .card .text-gray-600,
body.dark-mode .space-y-2 .text-gray-600 {
  color: rgba(255, 255, 255, 0.7) !important;
}
body.dark-mode td.text-gray-505,
body.dark-mode td.text-gray-500,
body.dark-mode td .text-gray-500,

body.dark-mode .space-y-2 .text-gray-500 {
  color: rgba(255, 255, 255, 0.55) !important;
}
body.dark-mode td.text-gray-400,
body.dark-mode td .text-gray-400,
body.dark-mode .card .text-gray-400,
body.dark-mode .space-y-2 .text-gray-400 {
  color: rgba(255, 255, 255, 0.45) !important;
}


