/* 
 * SoundSystem OS - Diseño Profesional para Sonideros
 * Paleta de colores inspirada en equipos de audio profesional
 */

:root {
  /* Colores Sonideros Premium - Sólidos y Formales (Estilo Consola de Audio) */
  --primary-dark: #030206;
  --primary-accent: #0066ff; /* Azul Real Sólido - Formal y Legible */
  --secondary-accent: #00f0ff; /* Cyan Eléctrico */
  --success-green: #00bfa5; /* Verde Menta / Teal */
  --warning-orange: #ff9900; /* Naranja Neón */
  --danger-red: #ff0055; /* Rosa Mexicano / Rojo */

  /* Grises / Fondos Premium Glassmorphism */
  --bg-dark: #05030a; /* Fondo ultra profundo */
  --bg-card: rgba(14, 11, 24, 0.75); /* Glassmorphism violeta ultra sutil */
  --bg-sidebar: #020104; /* Sidebar negro absoluto */
  --text-primary: #f6f5fa; /* Blanco puro */
  --text-secondary: #b5b1cd; /* Gris lavanda */
  --border-color: rgba(0, 102, 255, 0.12); /* Bordes con sutil reflejo azul */

  /* Gradientes de alta calidad sonidera (Sólidos para mayor formalidad) */
  --gradient-primary: #0066ff; /* Azul Real Sólido */
  --gradient-danger: #ff0055;
  --gradient-success: #00bfa5;
  --gradient-dark: linear-gradient(180deg, #0d0a1c 0%, #05030a 100%);

  /* Sombras y Efectos Glow Neón */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 10px rgba(0, 102, 255, 0.05);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 102, 255, 0.15);
  --shadow-glow: 0 0 15px rgba(0, 102, 255, 0.35);
  --shadow-green-glow: 0 0 15px rgba(0, 240, 255, 0.3);
}

/* ============================================
   TOPBAR / NAVBAR SUPERIOR
   ============================================ */

.topbar {
  position: fixed;
  top: 0;
  left: 250px;
  right: 0;
  height: 65px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 1050;
  box-shadow: var(--shadow-sm);
  transition: left 0.3s ease;
}



/* Topbar cuando sidebar está colapsado */
body.sidebar-collapsed .topbar {
  left: 80px;
}

@media (max-width: 768px) {
  .topbar,
  body.sidebar-collapsed .topbar {
    left: 0 !important;
    width: 100% !important;
  }
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ============================================
   BOTÓN HAMBURGUESA
   ============================================ */

.btn-hamburger {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  background: var(--gradient-primary);
  border: none;
  color: white;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.btn-hamburger:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

.btn-hamburger:active {
  transform: scale(0.95);
}

.page-breadcrumb h5 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  margin: 0;
}

.topbar-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.topbar-icon-btn:hover {
  background: rgba(0, 217, 255, 0.1);
  color: var(--primary-accent);
}

.badge-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--secondary-accent);
  border-radius: 50%;
}

.topbar-user-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.topbar-user-btn:hover {
  background: rgba(0, 217, 255, 0.05);
  border-color: var(--primary-accent);
}

.user-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.topbar-dropdown {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.5rem;
  margin-top: 0.5rem;
  box-shadow: var(--shadow-lg);
}

.topbar-dropdown .dropdown-item {
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.topbar-dropdown .dropdown-item:hover {
  background: rgba(0, 217, 255, 0.1);
  color: var(--primary-accent);
}

body {
}

/* Overlay para móvil */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   SIDEBAR RESPONSIVE
   ============================================ */

.sidebar-professional {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 250px;
  z-index: 1060;
  transition: width 0.3s ease, transform 0.3s ease;
  overflow-y: auto;
  overflow-x: visible;
}

/* Sidebar colapsado en desktop */
.sidebar-professional.collapsed {
  width: 80px;
}

/* MAIN CONTENT - Layout principal con sidebar fijo */
.main-content {
  margin-left: 250px;
  padding-top: 65px;
  min-height: 100vh;
  width: calc(100% - 250px);
  transition: margin-left 0.3s ease, width 0.3s ease;
  box-sizing: border-box;
  background: var(--bg-dark);
}

/* Cuando sidebar colapsado */
body.sidebar-collapsed .main-content {
  margin-left: 80px;
  width: calc(100% - 80px);
}

/* Desktop: sidebar siempre visible */
@media (min-width: 768px) {
  .sidebar-professional {
    transform: translateX(0) !important;
  }

  .sidebar-professional.collapsed .brand-text,
  .sidebar-professional.collapsed .nav-link span,
  .sidebar-professional.collapsed .user-info {
    display: none !important;
  }

  .sidebar-professional.collapsed .nav-link {
    justify-content: center;
    padding: 0.875rem 0;
    margin: 0.25rem 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
  }

  .sidebar-professional.collapsed .nav-link i {
    font-size: 1.5rem;
    margin: 0 !important;
    width: auto;
  }

  .sidebar-professional.collapsed .brand-logo {
    justify-content: center;
    padding: 1rem 0;
  }

  .sidebar-professional.collapsed .brand-logo i {
    font-size: 2rem;
  }

  .sidebar-professional.collapsed .user-profile {
    padding: 1rem 0;
    justify-content: center;
  }
}

/* Móvil: sidebar oculto por defecto, se muestra completo al abrir */
@media (max-width: 768px) {
  .sidebar-professional {
    width: 280px !important;
    transform: translateX(-100%);
  }

  /* Cuando el sidebar está colapsado (oculto) en móvil */
  body.sidebar-collapsed .sidebar-professional {
    transform: translateX(-100%);
  }

  /* Cuando NO está colapsado (visible), se muestra completo con textos */
  body:not(.sidebar-collapsed) .sidebar-professional {
    transform: translateX(0);
  }

  /* Asegurar que los textos se muestren en móvil cuando el sidebar esté visible */
  .sidebar-professional .nav-link span,
  .sidebar-professional .brand-text,
  .sidebar-professional .user-info {
    display: inline !important;
  }

  /* Los íconos con margen normal */
  .sidebar-professional .nav-link i {
    margin-right: 0.75rem;
  }

  .topbar,
  body.sidebar-collapsed .topbar {
    left: 0 !important;
    width: 100% !important;
    padding: 0 0.75rem !important;
    height: 60px !important;
    top: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
  }

  .topbar-right {
    gap: 0.5rem !important;
  }

  .topbar-user-btn {
    padding: 0.25rem !important;
    border: none !important;
    background: transparent !important;
  }

  .topbar-user-btn .user-name,
  .topbar-user-btn .bi-chevron-down {
    display: none !important;
  }

  .topbar-icon-btn {
    width: 35px !important;
    height: 35px !important;
  }

  .btn-hamburger {
    display: flex;
    width: 40px !important;
    height: 40px !important;
    font-size: 1.25rem !important;
  }

  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .sidebar-overlay.active {
    opacity: 1;
    pointer-events: all;
  }
}

/* Scrollbar personalizado para sidebar */
.sidebar-professional::-webkit-scrollbar {
  width: 6px;
}

.sidebar-professional::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

.sidebar-professional::-webkit-scrollbar-thumb {
  background: var(--primary-accent);
  border-radius: 3px;
}

.sidebar-professional::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-accent);
}

/* App wrapper: contenedor que envuelve sidebar + main content */
.app-wrapper {
  display: block;
  position: relative;
  min-height: 100vh;
}

/* Contenedor interno de cada vista */
.view-content {
  width: 100%;
}

/* Reset movido al inicio — ver encabezado del archivo */


body {
  font-family: "Outfit", "Inter", sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* .main-content ya definido arriba - regla consolidada */

/* ============================================
   LOGIN PAGE - Diseño Profesional
   ============================================ */

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

/* Fondo animado con ondas de audio */
.login-container::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(0, 217, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 50%,
      rgba(255, 51, 102, 0.1) 0%,
      transparent 50%
    );
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.1) rotate(5deg);
  }
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 16px 16px 0 0;
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo h1 {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.login-logo .subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.login-logo .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.5));
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-accent);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
  background-color: rgba(0, 217, 255, 0.05);
}

.form-control:disabled,
.form-control[readonly],
.form-select:disabled {
  background-color: var(--bg-dark) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-color) !important;
  opacity: 0.8;
}

.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23b5b1cd' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}

.form-select option {
  background-color: var(--bg-dark);
  color: var(--text-primary);
}

.input-group-text {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.border-secondary-custom {
  border-color: var(--border-color) !important;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--gradient-primary) !important;
  border: none;
  border-radius: 8px;
  color: white !important;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  background: #0052cc !important;
}

.btn-primary:active {
  transform: translateY(0);
}

.login-card .btn-primary,
.register-card .btn-primary,
.modal-footer .btn-primary {
  width: 100%;
}

.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  border-left: 4px solid;
}

.alert-danger {
  background: rgba(255, 51, 102, 0.1);
  border-color: var(--secondary-accent);
  color: var(--secondary-accent);
}

.alert-success {
  background: rgba(0, 255, 136, 0.1);
  border-color: var(--success-green);
  color: var(--success-green);
}

/* ============================================
   SIDEBAR - Diseño Profesional
   ============================================ */

.bg-dark {
  background: var(--bg-sidebar) !important;
}

.sidebar-brand {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.sidebar-brand h3 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 1.25rem;
}

.nav-link {
  color: var(--text-secondary) !important;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--primary-accent) !important;
}

.nav-link.active {
  color: var(--primary-accent) !important;
}

.nav-link i {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

/* Custom styling for Bootstrap nav-tabs */
.nav-tabs {
  border-bottom: 1px solid var(--border-color) !important;
  gap: 0.5rem;
}

.nav-tabs .nav-link {
  border: none !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0.75rem 1.5rem !important;
  background: transparent !important;
  color: var(--text-secondary) !important;
}

.nav-tabs .nav-link:hover {
  color: var(--primary-accent) !important;
  border-bottom: 2px solid rgba(0, 102, 255, 0.3) !important;
  background: transparent !important;
}

.nav-tabs .nav-link.active {
  color: var(--primary-accent) !important;
  border-bottom: 2px solid var(--primary-accent) !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* ============================================
   CARDS Y PANELES
   ============================================ */

.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(0, 240, 255, 0.15);
}

.card-header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}

.card-body {
  padding: 1.5rem;
}

/* Estadísticas con bordes de color */
.border-left-primary {
  border-left: 4px solid var(--primary-accent) !important;
}

.border-left-success {
  border-left: 4px solid var(--success-green) !important;
}

.border-left-warning {
  border-left: 4px solid var(--warning-orange) !important;
}

.border-left-info {
  border-left: 4px solid var(--primary-accent) !important;
}

/* ============================================
   BOTONES
   ============================================ */

.btn {
  border-radius: 8px;
  padding: 0.625rem 1.25rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-success {
  background: var(--gradient-success);
  color: white;
}

.btn-danger {
  background: var(--gradient-danger);
  color: white;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================
   TABLAS
   ============================================ */

.table {
  color: var(--text-primary);
}

.table thead th {
  background: var(--bg-dark);
  border-color: var(--border-color);
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  font-weight: 700;
}

.table tbody tr {
  border-color: var(--border-color);
  transition: all 0.2s ease;
}

.table tbody tr:hover {
  background: rgba(0, 217, 255, 0.05);
}

.table tbody td {
  border-color: var(--border-color);
}

/* ============================================
   RESPONSIVE - MOBILE FIRST
   ============================================ */

/* Móvil (< 768px) */
@media (max-width: 767px) {
  /* Login */
  .login-card {
    margin: 1rem;
    padding: 2rem 1.5rem;
  }

  .login-logo h1 {
    font-size: 1.75rem;
  }

  /* Dashboard */
  .dashboard-header {
    padding: 1rem 0;
  }

  .dashboard-title {
    font-size: 1.5rem;
  }

  .dashboard-time {
    display: none; /* Ocultar reloj en móvil */
  }

  /* Estadísticas - Stack vertical */
  .stat-card {
    padding: 1rem;
    gap: 1rem;
  }

  .stat-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  /* Cards profesionales */
  .professional-card .card-header {
    padding: 1rem;
  }

  .professional-card .card-body {
    padding: 1rem;
  }

  /* Eventos */
  .event-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .event-date {
    width: 50px;
    height: 50px;
  }

  .event-day {
    font-size: 1.25rem;
  }

  .event-month {
    font-size: 0.7rem;
  }

  /* Actividad */
  .activity-item {
    gap: 0.75rem;
  }

  .activity-icon {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  /* Tablas - Scroll horizontal */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table {
    font-size: 0.875rem;
  }

  .table thead th {
    font-size: 0.7rem;
    padding: 0.75rem 0.5rem;
  }

  .table tbody td {
    padding: 0.75rem 0.5rem;
  }

  /* Mini stats */
  .mini-stat-card {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .mini-stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .mini-stat-value {
    font-size: 1.25rem;
  }

  .mini-stat-label {
    font-size: 0.7rem;
  }

  /* Formularios */
  .modal-dialog {
    margin: 0.5rem;
  }

  .modal-content {
    border-radius: 8px;
  }

  .form-label-modern {
    font-size: 0.8rem;
  }

  .form-control-modern {
    padding: 0.625rem 0.875rem;
    font-size: 0.9rem;
  }

  /* Botones */
  .btn-modern {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .btn-group-modern {
    gap: 0.375rem;
  }

  .btn-action {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  /* Page header */
  .page-header {
    padding: 1rem 0;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .page-subtitle {
    font-size: 0.8rem;
  }

  /* Badges y etiquetas */
  .category-badge,
  .status-badge,
  .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }

  /* Sidebar brand en móvil */
  .brand-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .brand-text h3 {
    font-size: 1rem;
  }

  /* Nav links en móvil */
  .nav-link {
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem;
  }

  .nav-link i {
    font-size: 1rem;
  }
}

/* Tablet (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
  /* Dashboard */
  .dashboard-title {
    font-size: 1.75rem;
  }

  /* Estadísticas - 2 columnas */
  .stat-card {
    padding: 1.25rem;
  }

  .stat-value {
    font-size: 1.75rem;
  }

  /* Cards */
  .professional-card .card-header {
    padding: 1rem 1.25rem;
  }

  .professional-card .card-body {
    padding: 1.25rem;
  }

  /* Eventos */
  .event-date {
    width: 55px;
    height: 55px;
  }

  .event-day {
    font-size: 1.4rem;
  }

  /* Tablas */
  .table {
    font-size: 0.9rem;
  }

  .table thead th {
    font-size: 0.75rem;
  }
}

/* Desktop grande (> 1200px) */
@media (min-width: 1200px) {
  /* Contenedor más ancho */
  .container-fluid {
    max-width: 1920px;
    margin: 0 auto;
  }

  /* Dashboard con más espacio */
  .dashboard-header {
    padding: 2rem 0;
  }

  /* Estadísticas más grandes */
  .stat-card {
    padding: 2rem;
  }

  .stat-icon {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }

  .stat-value {
    font-size: 2.25rem;
  }
}

/* Orientación landscape en móvil */
@media (max-width: 767px) and (orientation: landscape) {
  .sidebar-professional {
    width: 240px !important;
  }

  .main-content {
    padding-top: 60px;
  }

  .stat-card {
    flex-direction: row;
  }
}

/* Impresión */
@media print {
  .sidebar-professional,
  .btn-hamburger,
  .sidebar-overlay,
  .btn-action,
  .dropdown {
    display: none !important;
  }

  .main-content {
    margin-left: 0 !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .card,
  .professional-card {
    border: 1px solid #ddd !important;
    box-shadow: none !important;
  }
}

/* Touch devices - Áreas de toque más grandes */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .nav-link,
  .btn-action,
  .dropdown-toggle {
    min-height: 44px;
    min-width: 44px;
  }

  .form-control,
  .form-control-modern {
    min-height: 44px;
  }
}

/* Reducir movimiento para usuarios con preferencias de accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* Efecto de VU meter en bordes */
@keyframes vu-pulse {
  0%,
  100% {
    box-shadow: 0 0 5px var(--primary-accent);
  }
  50% {
    box-shadow: 0 0 20px var(--primary-accent);
  }
}

.vu-active {
  animation: vu-pulse 2s ease-in-out infinite;
}

/* Custom Cyber-Sonidero Premium Styling & Fixes */
#menu .nav-link {
  background: transparent !important;
  color: var(--text-secondary) !important;
  border-left: 3px solid transparent !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#menu .nav-link:hover {
  background: rgba(255, 240, 31, 0.08) !important;
  color: var(--primary-accent) !important;
  border-left-color: var(--primary-accent) !important;
  transform: translateX(4px) !important;
}

#menu .nav-link.active {
  background: rgba(0, 102, 255, 0.15) !important;
  color: var(--primary-accent) !important;
  border-left: 3px solid var(--primary-accent) !important;
  box-shadow: 0 0 15px rgba(0, 102, 255, 0.2) !important;
}

#menu .nav-link.text-warning {
  color: var(--warning-orange) !important;
}
#menu .nav-link.text-warning:hover {
  background: rgba(255, 240, 31, 0.08) !important;
  border-left-color: var(--warning-orange) !important;
}

#menu .nav-link.text-danger {
  color: var(--danger-red) !important;
}
#menu .nav-link.text-danger:hover {
  background: rgba(255, 51, 0, 0.08) !important;
  border-left-color: var(--danger-red) !important;
}

/* Glassmorphism Tables */
.table {
  color: var(--text-primary) !important;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.table thead th {
  border: none;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.table tbody tr {
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.005);
}

.table tbody td {
  border: none;
  padding: 1rem;
  vertical-align: middle;
}

.table tbody tr td:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.table tbody tr td:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* VU Meter animation for headings */
.vu-meter-container {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
  margin-left: 10px;
}

.vu-bar {
  width: 3px;
  height: 100%;
  background: var(--success-green);
  animation: vu-rise 1.5s infinite ease-in-out alternate;
}

.vu-bar:nth-child(2) {
  animation-delay: 0.2s;
  background: var(--warning-orange);
}

.vu-bar:nth-child(3) {
  animation-delay: 0.4s;
  background: var(--secondary-accent);
}

@keyframes vu-rise {
  0% { height: 20%; }
  100% { height: 100%; }
}

/* ============================================
   DATATABLES & TABLE OVERRIDES FOR DARK MODE
   ============================================ */
.table,
table.dataTable,
table.dataTable tbody,
table.dataTable tbody tr,
table.dataTable tbody tr td {
  background-color: transparent !important;
  color: var(--text-primary) !important;
}

table.dataTable tbody tr:nth-of-type(odd) {
  background: rgba(255, 255, 255, 0.02) !important;
}

table.dataTable tbody tr:nth-of-type(even) {
  background: rgba(255, 255, 255, 0.04) !important;
}

table.dataTable tbody tr:hover,
table.dataTable tbody tr:hover td {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-primary) !important;
}

/* DataTables pagination & controls wrapper styling */
.dataTables_wrapper select.form-select,
.dataTables_wrapper input.form-control {
  background-color: var(--bg-dark) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  border-radius: 6px !important;
}

.dataTables_wrapper select.form-select:focus,
.dataTables_wrapper input.form-control:focus {
  border-color: var(--primary-accent) !important;
  box-shadow: 0 0 5px rgba(0, 102, 255, 0.2) !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  color: var(--text-secondary) !important;
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
}

/* Override Bootstrap Pagination for Dark Mode */
.pagination {
  margin-bottom: 0 !important;
  gap: 2px;
}

.pagination .page-item .page-link {
  background-color: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-secondary) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
}

.pagination .page-item .page-link:hover {
  background-color: rgba(0, 102, 255, 0.1) !important;
  border-color: var(--primary-accent) !important;
  color: var(--primary-accent) !important;
}

.pagination .page-item.active .page-link {
  background: var(--gradient-primary) !important;
  border-color: var(--primary-accent) !important;
  color: white !important;
  font-weight: 700 !important;
  box-shadow: 0 0 10px rgba(0, 102, 255, 0.3) !important;
}

.pagination .page-item.disabled .page-link {
  background-color: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
  color: rgba(255, 255, 255, 0.2) !important;
}

/* ============================================
   GLOBAL TABLES STYLE (DARK & LIGHT COMPATIBLE)
   ============================================ */
.table,
.table th,
.table td,
.table tbody tr,
.table tbody tr td,
.table thead tr th {
  color: var(--text-primary) !important;
}

.table thead th,
.table thead tr th {
  color: var(--text-secondary) !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border-bottom-width: 2px !important;
}

/* Table Hover */
.table-hover tbody tr:hover td,
.table-hover tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.04) !important;
  color: #ffffff !important;
}

/* Striped rows in dark mode */
.table-striped tbody tr:nth-of-type(odd) {
  --bs-table-accent-bg: rgba(255, 255, 255, 0.015) !important;
  background-color: rgba(255, 255, 255, 0.015) !important;
}

/* Light mode specific table styles */
body.dark-mode .table-striped tbody tr:nth-of-type(odd) {
  --bs-table-accent-bg: rgba(0, 0, 0, 0.02) !important;
  background-color: rgba(0, 0, 0, 0.02) !important;
}
body.dark-mode .table-hover tbody tr:hover td {
  background-color: rgba(0, 0, 0, 0.04) !important;
  color: var(--text-primary) !important;
}

/* Links inside tables */
.table td a {
  color: var(--primary-accent) !important;
  text-decoration: none;
  font-weight: 500;
}
.table td a:hover {
  color: var(--secondary-accent) !important;
  text-decoration: underline;
}

/* SweetAlert2 Modal Z-Index Fix */
.swal2-container {
  z-index: 20000 !important;
}

/* ============================================
   PREMIUM FULLCALENDAR CUSTOM STYLING
   ============================================ */
.fc {
  --fc-border-color: rgba(0, 102, 255, 0.12);
  --fc-daygrid-event-dot-width: 8px;
  font-family: 'Outfit', sans-serif;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

/* Toolbar Title */
.fc .fc-toolbar-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: capitalize;
  color: var(--text-primary);
}

/* Buttons Styling */
.fc .fc-button-primary {
  background-color: var(--bg-dark) !important;
  border: 1px solid var(--primary-accent) !important;
  color: var(--text-primary) !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  text-transform: capitalize !important;
  padding: 0.4rem 0.8rem !important;
  font-size: 0.875rem !important;
  transition: all 0.2s ease !important;
}

.fc .fc-button-primary:hover {
  background-color: var(--primary-accent) !important;
  color: white !important;
  box-shadow: 0 0 10px rgba(0, 102, 255, 0.4) !important;
}

.fc .fc-button-primary:disabled {
  background-color: rgba(255, 255, 255, 0.02) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-secondary) !important;
  opacity: 0.5;
}

.fc .fc-button-active {
  background-color: var(--primary-accent) !important;
  border-color: var(--primary-accent) !important;
  color: white !important;
}

/* Days Header */
.fc .fc-col-header-cell {
  background-color: rgba(0, 102, 255, 0.03);
  padding: 0.75rem 0 !important;
  border-color: rgba(0, 102, 255, 0.12) !important;
}

.fc .fc-col-header-cell-cushion {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary-accent) !important;
  text-decoration: none !important;
}

/* Days Cell Numbers */
.fc .fc-daygrid-day-number {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  padding: 6px 10px !important;
}

.fc .fc-daygrid-day:hover .fc-daygrid-day-number {
  color: var(--primary-accent) !important;
}

/* Today's Cell */
.fc .fc-day-today {
  background: rgba(0, 102, 255, 0.03) !important;
}

.fc .fc-day-today .fc-daygrid-day-number {
  color: var(--primary-accent) !important;
  background: rgba(0, 102, 255, 0.1);
  border-radius: 50%;
  display: inline-block;
  min-width: 28px;
  text-align: center;
}

/* Event Design */
.fc-v-event, .fc-h-event {
  border-radius: 6px !important;
  border: none !important;
  padding: 4px 8px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.fc-v-event:hover, .fc-h-event:hover {
  transform: translateY(-1px) scale(1.01) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  cursor: pointer;
}

/* Event dot alignment */
.fc-daygrid-event-dot {
  border-color: var(--primary-accent) !important;
}

/* Legend Glassmorphism Style */
.legend-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  padding: 0.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-primary);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* Responsiveness for FullCalendar on smaller screens */
@media (max-width: 768px) {
  .fc {
    padding: 0.75rem !important;
    border-radius: 8px !important;
  }
  
  .fc .fc-toolbar {
    flex-direction: column !important;
    gap: 0.75rem !important;
    align-items: center !important;
  }
  
  .fc .fc-toolbar-title {
    font-size: 1.1rem !important;
    text-align: center !important;
  }

  .fc .fc-button-primary {
    padding: 0.35rem 0.65rem !important;
    font-size: 0.75rem !important;
  }

  .fc .fc-header-toolbar {
    margin-bottom: 1rem !important;
  }

  .legend-container {
    padding: 0.75rem 1rem !important;
  }

}

/* ============================================
   PREMIUM HELP BANNER STYLES
   ============================================ */
.premium-help-card {
  background: rgba(13, 110, 253, 0.05) !important;
  border-left: 4px solid #0d6efd !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.05) !important;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}
.premium-help-card .card-body {
  padding: 1.25rem !important;
}
.premium-help-card .help-title {
  color: #0d6efd !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}
.premium-help-card .help-text {
  color: var(--text-secondary) !important;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.premium-help-card .help-example-box {
  background: rgba(13, 110, 253, 0.03);
  border: 1px solid rgba(13, 110, 253, 0.08);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
}
.premium-help-card .help-example-title {
  color: #0d6efd !important;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.premium-help-card .help-example-text {
  color: var(--text-primary) !important;
  font-size: 0.85rem;
  font-style: italic;
}

/* Modo oscuro adaptado (por defecto en PowerSonidero OS el sitio es oscuro) */
body:not(.dark-mode) .premium-help-card {
  background: rgba(0, 240, 255, 0.04) !important;
  border-left: 4px solid var(--neon-cyan) !important;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.03) !important;
}
body:not(.dark-mode) .premium-help-card .help-title,
body:not(.dark-mode) .premium-help-card .help-example-title,
body:not(.dark-mode) .premium-help-card .text-primary,
body:not(.dark-mode) .premium-help-card i {
  color: var(--neon-cyan) !important;
}
body:not(.dark-mode) .premium-help-card .help-example-box {
  background: rgba(0, 240, 255, 0.02);
  border: 1px solid rgba(0, 240, 255, 0.08);
}
body:not(.dark-mode) .premium-help-card .help-text {
  color: rgba(255, 255, 255, 0.7) !important;
}
body:not(.dark-mode) .premium-help-card .help-example-text {
  color: rgba(255, 255, 255, 0.9) !important;
}



