/*
 * bicyx_global.css
 * Hoja de estilos unificada del proyecto Bicyx
 */

:root {
  /* Colores Institucionales */
  --primary-color: #384177;      /* Azul Institucional */
  --secondary-color: #384177;    /* Azul Institucional (Sustituye al Cyan) */
  --accent-color: #384177;
  
  /* Estados */
  --success-color: #16a34a;
  --danger-color: #dc2626;
  --warning-color: #f59e0b;
  
  /* Fondos y Superficies */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-hover: #f1f5f9;
  
  /* Texto */
  --text-main: #000000;      /* Negro Absoluto para mayor claridad */
  --text-muted: #475569;
  --text-on-primary: #ffffff;
  
  /* Bordes y Sombras */
  --border-color: rgba(0,0,0,0.1);
  --glass-border: rgba(255,255,255,0.2);
  --shadow-premium: 0 10px 30px rgba(0,0,0,0.05);
  --shadow-hover: 0 15px 40px rgba(0,0,0,0.1);
  
  /* Layout */
  --header-height: 70px;
  --sidebar-width: 300px;
  --radius-lg: 20px;
  --radius-md: 12px;
}

/* ===========================
   CLASES PREMIUM (MASTER)
   =========================== */

/* Contenedores */
.premium-dashboard {
  padding-top: 100px;
  max-width: 100%;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 80px;
}

/* Encabezados de Sección */
.premium-header {
  background: var(--primary-color) !important;
  color: var(--text-on-primary) !important;
  padding: 18px 25px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin: 0; /* Eliminado el margin negativo que causaba overlap */
  font-weight: bold;
  font-family: 'VAG', sans-serif;
  border-bottom: 4px solid var(--secondary-color) !important;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.premium-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-lg) !important;
  padding: 0; /* Cambiamos a 0 y usamos contenedores internos para control total */
  box-shadow: var(--shadow-premium) !important;
  transition: transform 0.3s, box-shadow 0.3s !important;
  color: var(--text-main) !important;
  margin-bottom: 25px;
  overflow: hidden;
}

.premium-body {
  padding: 25px;
}

/* Tablas Premium */
.premium-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.premium-table thead th {
  background: var(--bg-hover) !important;
  color: var(--primary-color) !important;
  padding: 15px;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
}

.premium-table tbody td {
  background: var(--bg-card) !important;
  padding: 15px;
  color: var(--text-main) !important;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.premium-table tbody td:first-child { border-radius: 10px 0 0 10px; border-left: 1px solid var(--border-color); }
.premium-table tbody td:last-child { border-radius: 0 10px 10px 0; border-right: 1px solid var(--border-color); }

/* Inputs Premium */
.premium-input {
  background: var(--bg-card) !important;
  border: 1px solid #cbd5e1 !important;
  color: var(--text-main) !important;
  padding: 8px 12px;
  border-radius: 10px;
  transition: 0.3s;
  font-size: 0.85rem !important; /* Fuente más pequeña */
}

.premium-input:focus {
  border-color: var(--secondary-color) !important;
  outline: none;
  box-shadow: 0 0 10px rgba(46, 186, 197, 0.1);
}

/* Botones Premium */
.premium-btn {
  background: var(--primary-color);
  color: white !important;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.premium-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(46, 186, 197, 0.3);
}

.premium-btn-accent {
  background: var(--secondary-color);
}

/* Badges y Estados */
.premium-badge {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.75em;
  font-weight: bold;
}

.badge-success { background: rgba(22, 163, 74, 0.1); color: var(--success-color); border: 1px solid rgba(22, 163, 74, 0.2); }
.badge-success { background: rgba(22, 163, 74, 0.1); color: var(--success-color); border: 1px solid rgba(22, 163, 74, 0.2); }
.badge-danger { background: rgba(220, 38, 38, 0.1); color: var(--danger-color); border: 1px solid rgba(220, 38, 38, 0.2); }
.badge-warning { background: rgba(245, 158, 11, 0.1); color: var(--warning-color); border: 1px solid rgba(245, 158, 11, 0.2); }

/* ===========================
   LAYOUT MAESTRO-DETALLE
   =========================== */

.main-grid { 
  display: grid; 
  grid-template-columns: 380px 1fr; 
  gap: 25px; 
  align-items: start;
}

.station-list { 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
  max-height: 700px; 
  overflow-y: auto;
  padding-right: 10px;
}

.station-list::-webkit-scrollbar { width: 6px; }
.station-list::-webkit-scrollbar-thumb { background: rgba(56, 65, 119, 0.2); border-radius: 10px; }

.station-item { 
  padding: 15px 18px; 
  background: var(--bg-hover); 
  border-radius: var(--radius-md); 
  cursor: pointer; 
  transition: 0.3s; 
  border: 1px solid var(--border-color); 
}

.station-item:hover { 
  background: white; 
  transform: translateX(8px); 
  border-color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.station-item.active { 
  background: white; 
  border-color: var(--primary-color); 
  border-left: 5px solid var(--primary-color);
  box-shadow: 0 5px 20px rgba(56, 65, 119, 0.1);
}

.station-item .name { font-weight: bold; display: block; color: var(--text-main); }
.station-item .meta { font-size: 0.82em; color: var(--text-muted); line-height: 1.4; }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
  color: var(--text-muted);
  text-align: center;
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.2;
}

.bulk-bar { 
  background: rgba(56, 65, 119, 0.05); 
  padding: 12px 20px; 
  border-radius: 15px; 
  border: 1px solid rgba(56, 65, 119, 0.2); 
  display: flex; 
  align-items: center; 
  gap: 15px; 
  font-weight: bold;
  color: var(--primary-color);
}

/* ===========================
   NAVEGACIÓN POR PESTAÑAS (TABS)
   =========================== */

.tabs-nav { 
  display: flex; 
  gap: 10px; 
  background: rgba(255,255,255,0.1); 
  padding: 8px; 
  border-radius: 15px; 
}

.tab-trigger { 
  padding: 12px 25px; 
  border-radius: 10px; 
  cursor: pointer; 
  border: none; 
  background: transparent; 
  color: rgba(255, 255, 255, 0.5); /* Blanco semitransparente para mejor visibilidad */
  font-weight: bold; 
  transition: 0.3s; 
}

.tab-trigger:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}

.tab-trigger.active { 
  background: var(--primary-color); 
  color: white !important; 
  box-shadow: 0 4px 10px rgba(56,65,119,0.3);
}

/* Botones de Comando (Especiales) */
.btn-cmd { 
  background: rgba(56, 65, 119, 0.05); 
  color: var(--primary-color); 
  border: none; 
  padding: 8px; 
  border-radius: 8px; 
  cursor: pointer; 
  transition: 0.3s; 
}

.btn-cmd:hover { 
  background: var(--primary-color); 
  color: white !important; 
  transform: scale(1.1); 
}

.cmd-unlock { color: var(--success-color) !important; }
.cmd-lock { color: var(--danger-color) !important; }

/* ===========================
   MODALES (SweetAlert2 Premium)
   =========================== */

.swal2-html-container { 
  color: var(--text-muted) !important; 
  font-size: 0.75rem !important; /* Fuente aún más pequeña */
  line-height: 1.2 !important;
}

.swal2-popup { 
  background: var(--bg-card) !important; 
  color: var(--text-main) !important; 
  border-radius: 20px !important; 
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1) !important;
  padding: 15px !important; /* Reducir padding */
  width: auto !important;
  max-width: 95% !important;
}

.swal2-input, .swal2-select, .swal2-textarea {
  background: var(--bg-card) !important; 
  color: var(--text-main) !important; 
  border: 1px solid #cbd5e1 !important; 
  border-radius: 12px !important;
  box-shadow: none !important;
}

.swal2-confirm { 
  background: var(--primary-color) !important; 
  border-radius: 12px !important; 
  padding: 12px 30px !important; 
  font-weight: bold !important; 
  border: none !important;
}

.swal2-cancel { 
  background: #e2e8f0 !important; 
  color: #475569 !important;
  border-radius: 12px !important; 
}

.swal2-label {
  color: var(--text-main) !important;
  font-weight: bold;
  font-size: 0.9em;
}

/* ===========================
   1. TIPOGRAFÍA Y RESET BASE
   =========================== */
@font-face {
  font-family: VAG;
  src: url('site-templates/plantillas/assets/fonts/vag-rounded-bt.ttf') format('truetype');
  font-weight: bold;
}

* { box-sizing: border-box; }

body {
  font-family: VAG, sans-serif;
  padding-top: 70px;
  margin: 0;
  overflow-x: hidden;
  background-color: #ffffff; /* Fondo blanco global */
  color: #000000 !important; /* Negro Absoluto */
}

input, select, textarea {
  background-color: #ffffff !important;
  color: #000000 !important;
}

img { vertical-align: middle; }

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

p { color: #555; }

/* ===========================
   2. MENÚ FIJO SUPERIOR
   =========================== */
/* ===========================
   2. MENÚ FIJO SUPERIOR (PREMIUM GLASSMORPHISM)
   =========================== */
.main-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 99999 !important;
  background: #384177 !important; /* Azul para la barra superior */
  height: 70px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 20px !important;
  padding: 0 20px !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-bottom: 2px solid #2EBAC5;
  transition: 0.3s ease;
}

#logo {
  display: flex !important;
  align-items: center !important;
  padding: 20px 0 !important;
  transition: 0.3s;
}

#logo img {
  max-height: 35px !important;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.main-nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 300px !important;
  height: 100vh !important;
  background: #ffffff !important; /* Fondo blanco para el sidebar */
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  padding-top: 0 !important;
  border-right: 1px solid rgba(56, 65, 119, 0.1) !important;
  box-shadow: 10px 0 40px rgba(0,0,0,0.05) !important;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 99998 !important;
  margin: 0 !important;
  overflow-y: auto !important; /* Barra de desplazamiento */
}

.main-nav.active {
  transform: translateX(0);
}

.main-menu {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  padding: 0 10px !important;
}

.main-menu li {
  position: relative;
  margin: 5px 0;
}

.main-menu li a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  font-size: 11px; /* Fuente más pequeña */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--text-main) !important; /* Negro */
  border-radius: 12px;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
}

.sidebar-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 20px;
  background: #384177; /* Azul institucional para visibilidad del logo white */
  border-bottom: 1px solid rgba(56, 65, 119, 0.1);
  margin-bottom: 15px;
}

.close-sidebar {
  font-size: 24px;
  color: #ffffff; /* Icono X en blanco para fondo azul */
  opacity: 0.8;
  transition: 0.3s;
  padding: 10px;
  position: absolute;
  top: 10px;
  right: 15px;
}

.close-sidebar:hover {
  opacity: 1;
  color: #2EBAC5;
  transform: rotate(90deg);
}

/* Hover Effect */
.main-menu li a:hover {
  color: white !important;
  background: #384177 !important; /* Hover azul */
  box-shadow: 0 4px 15px rgba(56, 65, 119, 0.2);
}

.main-menu li a:hover i {
  transform: translateY(-2px);
  color: #fff !important;
}

/* Submenu Sidebar Styling */
.main-menu li .sub-menu {
  position: static;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin: 5px 0;
  padding: 5px 0;
  opacity: 0;
  max-height: 0;
  visibility: hidden;
  overflow: hidden;
  transition: all 0.4s ease;
  transform: none;
  box-shadow: none;
  border: none;
  border-right: 2px solid rgba(46, 186, 197, 0.3);
}

.main-menu li:hover .sub-menu,
.main-menu li:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  max-height: 500px;
  padding: 10px 0;
}

.main-menu li .sub-menu li {
  margin: 0;
  padding: 0;
  display: block;
}

.main-menu li .sub-menu li a {
  padding: 10px 20px;
  font-size: 11px; /* Fuente más pequeña */
  border-radius: 0;
  text-transform: none;
  letter-spacing: 0.3px;
  color: #000000 !important; /* Negro absoluto */
  border-bottom: 1px solid rgba(56, 65, 119, 0.05);
}

.main-menu li .sub-menu li a:hover {
  background: var(--primary-color) !important; /* Fondo azul */
  color: #ffffff !important; /* Texto blanco en hover azul */
  padding-left: 25px;
}

.main-menu li .sub-menu li:last-child a { border-bottom: none; }

/* Logout Button Special Style */
.logout-btn a {
  background: rgba(255, 50, 50, 0.1) !important;
  color: #ff5f5f !important;
  border: 1px solid rgba(255, 50, 50, 0.2) !important;
}

.logout-btn a i { color: #ff5f5f !important; }

.logout-btn a:hover {
  background: #ff4d4d !important;
  color: white !important;
  box-shadow: 0 0 20px rgba(255, 50, 50, 0.4) !important;
}

.logout-btn a:hover i { color: white !important; }

/* Ajustes para logout-btn en sidebar */
.main-menu .logout-btn {
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 15px;
}

.main-menu .logout-btn a {
  justify-content: center !important;
  text-align: center;
}

/* Trigger de menú (hamburguesa) - Ahora siempre visible */
a.menu-link {
  display: flex !important;
  font-size: 28px !important;
  color: #fff !important;
  cursor: pointer !important;
  z-index: 100000;
  padding: 10px;
  transition: 0.3s;
}

a.menu-link:hover {
  color: #2EBAC5;
  transform: scale(1.1);
}

/* ===========================
   3. FONDOS Y SECCIONES
   =========================== */
.headerWall, .generalWall {
  background-color: #ffffff !important;
  background-image: none !important;
  color: #333;
}

.hr_title {
  background-color: white;
  border-color: white;
  max-width: 20%;
}

.brand-img {
  position: relative;
  left: 200px;
  width: 200px;
  margin: -0.3125rem 0;
}

/* ===========================
   4. TABS Y NAVEGACIÓN INTERNA
   =========================== */
.mySlides { display: none; }

#tabs ul {
  margin: 0;
  padding: 0;
  -webkit-column-count: 3;
  -moz-column-count: 3;
  column-count: 3;
  -webkit-column-gap: 0;
  -moz-column-gap: 0;
  column-gap: 0;
}

#tabs ul::after {
  clear: both;
  content: '';
  display: table;
}

#tabs ul li {
  display: block;
  font-weight: 400;
  font-size: 1.2em;
  letter-spacing: 1px;
  text-align: center;
}

#tabs ul li a {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  outline: 0;
  padding-bottom: 30px;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
}

#tabs ul li a:after {
  transition: all 0.3s;
  width: 10px;
  height: 10px;
  background-color: #fff;
  content: '';
  position: absolute;
  left: 50%;
  transform: translate(-50%);
  bottom: 0;
}

#tabs ul li a:before {
  transition: all 0.3s;
  width: 25px;
  height: 25px;
  border: 2px solid transparent;
  background-color: transparent;
  content: '';
  position: absolute;
  left: 50%;
  transform: translate(-50%);
  bottom: -5px;
}

#tabs ul li span { display: block; margin-bottom: 0.75em; }
#tabs ul .ui-tabs-active a { color: #2EBAC5; }
#tabs ul .ui-tabs-active a:after { background-color: #2EBAC5; width: 15px; height: 15px; }
#tabs ul .ui-tabs-active a:before { border-color: #2EBAC5; }

/* ===========================
   5. FOOTER
   =========================== */
footerMzls {
  position: fixed;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: auto;
  background-color: #06373C;
  color: white;
  text-align: center;
}

/* Estilos de footer antiguos removidos para usar main-footer.php */
/* .footer-content { ... } */

.socials {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.socials a { text-decoration: none; color: #fff; padding: 5px; }

/* ===========================
   6. COLUMNAS Y LAYOUT
   =========================== */
.col-imgs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  height: 65%;
}

.col-imgs_account {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  height: 70%;
  width: 100%;
  flex-wrap: wrap;
}

.column   { float: left; width: 33.33%; padding: 10px; height: 80px; }
.column100 { float: left; width: 100%;   padding-left: 5px; padding-right: 5px; height: 80px; }
.column95  { float: left; width: 95%;    padding-left: 5px; height: 80px; }
.column85  { float: left; width: 85%;    padding-left: 5px; padding-right: 5px; height: 80px; }
.column75  { float: left; width: 75%;    padding-left: 5px; height: 80px; }
.column65  { float: left; width: 65%;    padding-left: 5px; padding-right: 5px; height: 80px; }
.column55  { float: left; width: 55%;    padding-left: 5px; padding-right: 5px; height: 80px; }
.column45  { float: left; width: 45%;    padding-left: 5px; padding-right: 5px; height: 100px; }
.column20  { float: left; width: 20%;    padding-left: 5px; height: 100px; padding-top: 4%; }
.column10  { float: left; width: 10%;    padding-left: 5px; padding-right: 5px; height: 100px; }
.column5   { float: left; width: 5%;     padding-left: 5px; padding-right: 5px; height: 100px; }

.column_profile { float: left; width: 40%; padding: 0; height: 100px; }

.row:after { content: ''; display: table; clear: both; }

.vl {
  border-left: 2px solid white;
  height: 100%;
  position: static;
  left: 50%;
  top: 0;
}

.flex-item {
  padding: 5px;
  width: 200px;
  margin: 10px;
  color: white;
  text-align: center;
}

.flex-item2 {
  padding: 5px;
  width: 450px;
  margin: 10px;
  color: white;
  text-align: center;
}

/* ===========================
   7. PRELOADER ANIMADO (rueda + quitobici.gif)
   =========================== */
.js-preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  z-index: 999999;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.js-preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.preloader-inner .dot {
  position: absolute;
  width: 16px;
  height: 16px;
  top: 12px;
  left: 15px;
  background: #2EBAC5;
  border-radius: 50%;
  transform: translateX(0);
  animation: dot 2.8s infinite;
}

.preloader-inner .dots {
  transform: translateX(0);
  margin-top: 12px;
  margin-left: 31px;
  animation: dots 2.8s infinite;
}

.preloader-inner .dots span {
  display: block;
  float: left;
  width: 16px;
  height: 16px;
  margin-left: 16px;
  background: #fff;
  border-radius: 50%;
}

@keyframes dot  { 50% { transform: translateX(96px); } }
@keyframes dots { 50% { transform: translateX(-31px); } }

/* ===========================
   8. UTILIDADES VARIAS
   =========================== */
.vl { border-left: 2px solid white; height: 100%; }

/* ===========================
   9. ESTANDARIZACIÓN GLOBAL (BOOTSTRAP & UI)
   =========================== */

/* Forzar fondos blancos y texto oscuro en contenedores */
.container, .container-fluid, .main-content, .wrapper {
  background-color: #ffffff !important;
}

/* Cabeceras de Tarjetas, Paneles y Modales */
.card-header, .panel-heading, .modal-header, .box-header {
  background-color: #384177 !important;
  color: #ffffff !important;
  border-bottom: 3px solid #2EBAC5 !important;
}

.card-header *, .panel-heading *, .modal-header *, .box-header * {
  color: #ffffff !important;
}

/* Botones Principales */
.btn-primary, .btn-info, .btn-custom {
  background-color: #384177 !important;
  border-color: #384177 !important;
  color: #ffffff !important;
  transition: 0.3s !important;
}

.btn-primary:hover, .btn-info:hover {
  background-color: #2b335e !important;
  border-color: #2b335e !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(56, 65, 119, 0.3);
}

/* Tablas */
.table thead th {
  background-color: #f8fafc !important;
  color: #384177 !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

/* Modales */
.modal-content {
  border-radius: 20px !important;
  overflow: hidden !important;
  border: 1px solid rgba(0,0,0,0.1) !important;
  background-color: #ffffff !important;
  color: #333 !important;
}

/* Forzar inputs (v2 avanzado) */
input.form-control, select.form-control, textarea.form-control {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #ced4da !important;
}

input.form-control:focus {
  border-color: #384177 !important;
  box-shadow: 0 0 0 0.2rem rgba(56, 65, 119, 0.25) !important;
}

/* ===========================
   10. RESPONSIVE Y AJUSTES FINALES
   =========================== */

/* En pantallas muy pequeñas, ajustar el ancho del sidebar */
@media screen and (max-width: 480px) {
  .main-nav {
    width: 85% !important;
  }
}

/* Asegurar que el contenido principal tenga espacio si es necesario */
/* Nota: Como el sidebar es overlay, no desplazamos el body por ahora */

@media screen and (max-device-width: 550px) {
  .col-imgs { padding-top: 35% !important; }
}

@media only screen and (max-width: 300px) {
  .text { font-size: 11px; }
}
/* ===========================
   12. NOTIFICACIONES FLOTANTES (EMERGENCIA)
   =========================== */
.emergency-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ffffff;
    border-left: 5px solid #ff4757;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 20px;
    z-index: 100000;
    width: 350px;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideInRight 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 71, 87, 0.1);
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.emergency-toast i {
    font-size: 30px;
    color: #ff4757;
    animation: pulseRed 1s infinite alternate;
}

@keyframes pulseRed {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(1.1); opacity: 0.8; }
}

.emergency-toast .content h6 {
    margin: 0;
    color: #ff4757;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
}

.emergency-toast .content p {
    margin: 5px 0 0 0;
    font-size: 13px;
    color: #334155;
    line-height: 1.4;
}

.emergency-toast .btn-close-toast {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #ccd6e0;
    cursor: pointer;
    font-size: 14px;
}

.emergency-toast .btn-close-toast:hover { color: #ff4757; }

/* ===========================
   13. DATATABLES PREMIUM PAGINATION & ELEMENTS
   =========================== */
.dataTables_wrapper .dataTables_length, 
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 20px;
    color: var(--text-main);
    font-size: 0.9rem;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border-radius: 20px !important;
    padding: 6px 15px !important;
    border: 1px solid var(--border-color) !important;
    background: #ffffff !important;
    outline: none !important;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(56, 65, 119, 0.1) !important;
}

/* Compact Table Rows */
.premium-table th, 
.premium-table td {
    padding: 6px 12px !important;
    line-height: 1.1 !important;
    font-size: 0.82rem !important;
}

.dataTables_wrapper .dataTables_paginate {
    margin-top: 15px;
    padding: 10px 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 6px 14px !important;
    margin: 0 2px !important;
    border-radius: 6px !important;
    border: 1px solid var(--border-color) !important;
    background: #ffffff !important;
    color: var(--primary-color) !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
}

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

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    border-color: #e2e8f0 !important;
    cursor: default !important;
}

.dataTables_wrapper .dataTables_info {
    color: var(--text-muted) !important;
    font-size: 0.8rem !important;
    padding-top: 20px !important;
}

/* ===========================
   14. BADGES Y ETIQUETAS
   =========================== */
.premium-badge {
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 0.73rem !important;
    font-weight: 700 !important;
    display: inline-block !important;
    white-space: nowrap !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.badge-success { background: #dcfce7 !important; color: #166534 !important; border: 1px solid #bbf7d0 !important; }
.badge-danger { background: #fee2e2 !important; color: #991b1b !important; border: 1px solid #fecaca !important; }
.badge-warning { background: #fef9c3 !important; color: #854d0e !important; border: 1px solid #fef08a !important; }
.badge-info { background: #e0f2fe !important; color: #075985 !important; border: 1px solid #bae6fd !important; }
.badge-primary { background: #e0e7ff !important; color: #3730a3 !important; border: 1px solid #c7d2fe !important; }
