:root {
  --header-height: 55px;
  --sidebar-width-expanded: 230px;
  --sidebar-width-collapsed: 70px;
  --sidebar-gap: 18px; /* Espacio entre header y sidebar */
}
/* 
========================================================================================================================================
========================================================================================================================================
========================================================================================================================================
    ADICIONALES PARA SIDEBAR Y HEADER
========================================================================================================================================
========================================================================================================================================
========================================================================================================================================
*/
/* ====================================================================
   ANIMACIONES ADICIONALES
   ==================================================================== */

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

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

.floating-sidebar.show {
  animation: slideInFromLeft var(--transition-speed) ease forwards;
}

.floating-sidebar.hide {
  animation: slideOutToLeft var(--transition-speed) ease forwards;
}

/* ====================================================================
   RESPONSIVE DESIGN
   ==================================================================== */

@media (max-width: 768px) {
  .floating-sidebar {
    left: 10px !important;
    width: calc(100vw - 20px) !important;
    max-width: 320px;
  }
  
  .app-header {
    padding: 10px 15px !important;
  }
  
  .sidebar-toggle-btn:hover {
  background: linear-gradient(135deg, #312e81 0%, #6366f1 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
    }
}

@media (max-width: 480px) {
  .floating-sidebar {
    left: 5px !important;
    width: calc(100vw - 10px) !important;
    max-width: none;
  }
}

/* ====================================================================
   ESTILOS PARA ESTADOS ACTIVOS (legacy — menu-link)
   ==================================================================== */

.floating-menu-link.active {
  background-color: var(--primary-color) !important;
  color: white !important;
}

.floating-menu-link.active i {
  color: white !important;
}

/* ====================================================================
   MEJORAS VISUALES ADICIONALES
   ==================================================================== */

.floating-sidebar {
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-sidebar-header {
  position: relative;
  overflow: hidden;
}

.floating-sidebar-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.floating-sidebar:hover .floating-sidebar-header::before {
  transform: translateX(100%);
}

/* Eliminar estilos del sidebar original que ya no se usan */
.sidebar {
  display: none !important; /* Ocultar el sidebar original */
}

/* Asegurar que el contenido no tenga márgenes por el sidebar original */
.content.expanded,
.wrapper.sidebar-collapsed .content {
  margin-left: 0 !important;
  width: 100% !important;
}


/* 
========================================================================================================================================
========================================================================================================================================
========================================================================================================================================
    SIDEBAR
========================================================================================================================================
========================================================================================================================================
========================================================================================================================================
*/

.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  transition: all var(--transition-speed) ease;
}

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

/* Header del sidebar */
.sidebar-header {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  height: var(--header-height);
}

.logo-container {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.logo-icon {
  font-size: 24px;
  margin-right: 10px;
  color: white;
}

.logo-text {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
  white-space: nowrap;
  transition: opacity var(--transition-speed) ease;
}

.sidebar.collapsed .logo-text {
  opacity: 0;
  width: 0;
}

.toggle-btn, .mobile-menu-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.toggle-btn:hover, .mobile-menu-btn:hover {
  color: var(--light-color);
}

/* Perfil de usuario */
.user-profile {
  padding: 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition-speed) ease;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-info {
  white-space: nowrap;
  overflow: hidden;
  transition: opacity var(--transition-speed) ease;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.user-role {
  font-size: 12px;
  opacity: 0.8;
  margin: 0;
}

.sidebar.collapsed .user-info {
  opacity: 0;
  width: 0;
}

/* Barra de búsqueda */
.sidebar-search {
  padding: 15px;
  transition: all var(--transition-speed) ease;
}

.search-container {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 8px 15px;
  padding-left: 35px;
  border-radius: 30px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 14px;
  transition: all var(--transition-speed) ease;
}

.search-input::placeholder {
  color: rgba(255,255,255,0.6);
}

.search-input:focus {
  background: rgba(255,255,255,0.2);
  box-shadow: none;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}

.sidebar.collapsed .sidebar-search {
  padding: 15px 5px;
}

.sidebar.collapsed .search-input {
  opacity: 0;
  pointer-events: none;
}

/* Separador */
.separator {
  border-color: rgba(255,255,255,0.1);
  margin: 0 15px;
}

/* Menú del sidebar */
.sidebar-menu {
  flex: 1;
  overflow-y: auto;
  padding: 15px 0;
}

.sidebar-menu::-webkit-scrollbar {
  width: 5px;
}

.sidebar-menu::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,0.2);
  border-radius: 10px;
}

.sidebar-menu-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  margin: 2px 0;
  transition: all var(--transition-speed) ease;
}

.sidebar-menu-item:hover {
  background: rgba(255,255,255,0.1);
  color: white;
}

.sidebar-menu-item i {
  font-size: 18px;
  min-width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-text {
  white-space: nowrap;
  transition: opacity var(--transition-speed) ease;
}

.sidebar.collapsed .menu-text {
  opacity: 0;
  width: 0;
}

/* Submenús */
.menu-item-link {
  display: flex;
  align-items: center;
  width: 100%;
  cursor: pointer;
}

.toggle-icon {
  margin-left: auto;
  font-size: 12px;
  transition: transform var(--transition-speed) ease;
}

.sidebar.collapsed .toggle-icon {
  opacity: 0;
  width: 0;
}

.submenu-container {
  padding: 5px 0 5px 45px;
  background: rgba(0,0,0,0.1);
}

.submenu-item {
  display: flex;
  align-items: center;
  padding: 8px 15px;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition-speed) ease;
}

.submenu-item:hover {
  color: white;
}

.sub-icon {
  font-size: 8px;
  margin-right: 10px;
}

.sidebar.collapsed .submenu-container {
  opacity: 0;
  height: 0;
  padding: 0;
  overflow: hidden;
}

/* Footer del sidebar */
.sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: rgba(0,0,0,0.1);
}

.footer-icon {
  position: relative;
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-speed) ease;
}

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

.badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--warning-color);
  color: var(--dark-color);
  border-radius: 50%;
  font-size: 10px;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.sidebar.collapsed .sidebar-footer > .footer-icon:not(:last-child) {
  display: none;
}

/* ====================================================================
   SIDEBAR FLOTANTE
   ==================================================================== */

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

.floating-sidebar-menu::-webkit-scrollbar-thumb {
  background-color: var(--neutral-300);
  border-radius: 2px;
}

.floating-sidebar-menu::-webkit-scrollbar-thumb:hover {
  background-color: var(--neutral-400);
}

/* Efectos hover para los items del menú flotante */
.floating-menu-link:hover {
  background-color: var(--primary-lightest) !important;
  color: var(--primary-color) !important;
  transform: translateX(4px);
}

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

/* Efecto hover para el botón de logout */
.logout-btn:hover {
  background-color: #ef4444 !important;
  color: white !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

/* ====================================================================
   OVERLAY DEL SIDEBAR
   ==================================================================== */

.sidebar-overlay {
  backdrop-filter: blur(2px);
}

/* 
========================================================================================================================================
========================================================================================================================================
========================================================================================================================================
    HEADER
========================================================================================================================================
========================================================================================================================================
========================================================================================================================================
*/

.app-header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100% !important;
  z-index: 1001;
  height: var(--header-height);
/*  background: linear-gradient(135deg, var(--primary-color) 0%, #818CF8 100%) !important;*/
  background: linear-gradient(135deg, var(--landing-primary-600) 0%, var(--landing-secondary-600) 100%) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.sidebar-toggle-btn:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

.user-menu-container {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.company-name {
  margin-right: 15px;
  font-weight: bold;
}

.user-avatar {
  background-color: #0a59d3;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 8px;
  color: white;
}

.username {
  margin-right: 5px;
}

.dropdown-icon {
  font-size: 12px;
  color: #777;
}

.dropdown-card {
  position: absolute;
  right: 0;
  top: 45px;
  z-index: 1000;
  min-width: 200px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border: none;
}

#user-dropdown-menu {
  transition: all 0.3s ease-in-out;
}

.list-group-item:hover {
  background-color: #f8f9fa;
}




/* 
========================================================================================================================================
========================================================================================================================================
========================================================================================================================================
    LAYOUT PRINCIPAL
========================================================================================================================================
========================================================================================================================================
========================================================================================================================================
*/

.wrapper {
  display: flex;
  position: relative;
  min-height: 100vh;
  padding-top: var(--header-height);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed) ease;
}



.content {
  flex: 1;
  /* Margen izquierdo basado en el ancho del sidebar expandido + espacio adicional */
  margin-left: calc(var(--sidebar-width-expanded) + 40px) !important;
  width: calc(100% - var(--sidebar-width-expanded) - 40px) !important;
  background-color: transparent;
  min-height: calc(100vh - var(--header-height));
  padding: 20px;
  transition: all var(--transition-speed) ease;
}

.content.expanded {
  margin-left: calc(var(--sidebar-width-collapsed) + 40px) !important;
  width: calc(100% - var(--sidebar-width-collapsed) - 40px) !important;
}

.wrapper.sidebar-collapsed .content {
  margin-left: calc(var(--sidebar-width-collapsed) + 40px) !important;
  width: calc(100% - var(--sidebar-width-collapsed) - 40px) !important;
}

/* ====================================================================
   SIDEBAR FLOTANTE - ESTILOS ESPECÍFICOS
   ==================================================================== */

.floating-sidebar {
  position: fixed !important;
  top: calc(var(--header-height) + var(--sidebar-gap)) !important;
  left: 20px !important;
  width: var(--sidebar-width-expanded) !important;
  height: calc(100vh - var(--header-height) - var(--sidebar-gap) - 20px) !important;
  background: white !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  z-index: 999 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  border: 1px solid #e5e7eb !important;
  transition: all var(--transition-speed) ease !important;
}

.floating-sidebar.collapsed {
  width: var(--sidebar-width-collapsed) !important;
  overflow-x: hidden !important;
}

/* Menú del sidebar flotante */
.floating-sidebar .sidebar-menu {
  flex: 1 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 15px 0 !important;
}

.floating-sidebar .sidebar-menu::-webkit-scrollbar {
  width: 4px !important;
}

.floating-sidebar .sidebar-menu::-webkit-scrollbar-thumb {
  background-color: #d1d5db !important;
  border-radius: 2px !important;
}

.floating-sidebar .sidebar-menu::-webkit-scrollbar-track {
  background: transparent !important;
}

/* ────────────────────────────────────────────────────────────────────
   FLOATING SIDEBAR — ITEM BASE (inactivo)
   Colores más definidos para mejor contraste general
   ──────────────────────────────────────────────────────────────────── */

.floating-sidebar .sidebar-menu-item {
  display: flex !important;
  align-items: center !important;
  padding: 14px 20px !important;
  color: #667085 !important;
  text-decoration: none !important;
  margin: 3px 12px !important;
  border-radius: 16px !important;
  transition: all 180ms ease !important;
  cursor: pointer !important;
  position: relative !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}

.floating-sidebar .sidebar-menu-item i {
  font-size: 16px !important;
  min-width: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-right: 14px !important;
  color: #6B7280 !important;
  transition: all 180ms ease !important;
}

.floating-sidebar .menu-text {
  font-size: 14px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  transition: opacity var(--transition-speed) ease, color 180ms ease !important;
}

/* ────────────────────────────────────────────────────────────────────
   FLOATING SIDEBAR — HOVER (preparación visual hacia active)
   ──────────────────────────────────────────────────────────────────── */

.floating-sidebar .sidebar-menu-item:hover {
  background: rgba(124, 58, 237, 0.04) !important;
  color: #4F46E5 !important;
  text-decoration: none !important;
  transform: translateY(-1px) !important;
}

.floating-sidebar .sidebar-menu-item:hover i {
  color: #4F46E5 !important;
}

.floating-sidebar .sidebar-menu-item:hover .menu-text {
  color: #4F46E5 !important;
}

/* ────────────────────────────────────────────────────────────────────
   FLOATING SIDEBAR — ACTIVE STATE PREMIUM (expandido)
   Cápsula suave con tinte de marca, borde fino, elevación leve,
   accent bar lateral
   ──────────────────────────────────────────────────────────────────── */

.floating-sidebar .sidebar-menu-item.active {
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.08) 0%,
    rgba(59, 130, 246, 0.05) 100%
  ) !important;
  border: 1px solid rgba(124, 58, 237, 0.16) !important;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.08) !important;
  border-radius: 16px !important;
  color: #4338CA !important;
  text-decoration: none !important;
  transform: translateY(0) !important;
}

.floating-sidebar .sidebar-menu-item.active i {
  color: #4338CA !important;
}

.floating-sidebar .sidebar-menu-item.active .menu-text {
  color: #4338CA !important;
  font-weight: 600 !important;
}

/* ── Accent bar vertical izquierda (solo expandido) ── */
.floating-sidebar .sidebar-menu-item.active::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 3px !important;
  height: 55% !important;
  background: linear-gradient(180deg, #7c3aed 0%, #3b82f6 100%) !important;
  border-radius: 999px !important;
  opacity: 1 !important;
  transition: all 180ms ease !important;
}

/* ────────────────────────────────────────────────────────────────────
   FLOATING SIDEBAR — COLLAPSED: base
   ──────────────────────────────────────────────────────────────────── */

.floating-sidebar.collapsed .menu-text {
  opacity: 0 !important;
  width: 0 !important;
  margin: 0 !important;
}

.floating-sidebar.collapsed .sidebar-menu-item {
  justify-content: center !important;
  padding: 14px !important;
  margin: 3px 8px !important;
  border-radius: 14px !important;
}

.floating-sidebar.collapsed .sidebar-menu-item i {
  margin-right: 0 !important;
}

/* ────────────────────────────────────────────────────────────────────
   FLOATING SIDEBAR — COLLAPSED: active premium
   Tile centrado con presencia de marca, sin accent bar
   ──────────────────────────────────────────────────────────────────── */

.floating-sidebar.collapsed .sidebar-menu-item.active {
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.08) 0%,
    rgba(59, 130, 246, 0.05) 100%
  ) !important;
  border: 1px solid rgba(124, 58, 237, 0.16) !important;
  box-shadow:
    0 4px 14px rgba(124, 58, 237, 0.10),
    0 0 0 1px rgba(124, 58, 237, 0.04) !important;
  border-radius: 14px !important;
}

.floating-sidebar.collapsed .sidebar-menu-item.active i {
  color: #4338CA !important;
}

/* En colapsado, ocultar la accent bar */
.floating-sidebar.collapsed .sidebar-menu-item.active::before {
  opacity: 0 !important;
  width: 0 !important;
}

/* ────────────────────────────────────────────────────────────────────
   FLOATING SIDEBAR — FOOTER (sin cambios, fondo blanco)
   ──────────────────────────────────────────────────────────────────── */

.floating-sidebar .sidebar-footer {
  border-top: none !important;
  padding: 16px !important;
  display: flex !important;
  justify-content: center !important;
  background: white !important;
}

.floating-sidebar .footer-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 8px !important;
  color: #ef4444 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  border: none !important;
  background: white !important;
}

.floating-sidebar .footer-icon:hover {
  background-color: #ef4444 !important;
  color: white !important;
  text-decoration: none !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3) !important;
}

/* Ocultar sidebar original completamente */
.sidebar {
  display: none !important;
}


/* ════════════════════════════════════════════════════════════════════════════════
   FROGGY PIXEL — HEADER PREMIUM v3
   Prefix: hdr-
   Glassmorphic dropdown, Solar icons, smooth animations
   ─── AGREGAR AL FINAL del CSS del header/sidebar existente ───
   ════════════════════════════════════════════════════════════════════════════════ */


/* ────────────────────────────────────────────
   🎬 ANIMATIONS
   ──────────────────────────────────────────── */

@keyframes hdr-dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes hdr-dropdown-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
}

@keyframes hdr-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes hdr-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.15); }
  50% { box-shadow: 0 0 0 4px rgba(124, 58, 237, 0); }
}


/* ────────────────────────────────────────────
   🏗️ HEADER SHELL
   ──────────────────────────────────────────── */

.hdr-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0 1.25rem !important;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 40%, #3b82f6 100%) !important;
  height: 60px !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 1001 !important;
  box-shadow:
    0 4px 20px rgba(99, 102, 241, 0.25),
    0 1px 3px rgba(0, 0, 0, 0.1) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(12px) !important;
}

/* Subtle animated shimmer overlay */
.hdr-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.03) 40%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.03) 60%,
    transparent 80%
  );
  background-size: 200% 100%;
  animation: hdr-shimmer 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}


/* ────────────────────────────────────────────
   ⬅️ LEFT SIDE — Toggle + Logo
   ──────────────────────────────────────────── */

.hdr-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.hdr-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 10px !important;
  color: white !important;
  cursor: pointer !important;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: blur(8px) !important;
  padding: 0 !important;
  margin-left: 0.5rem !important;
}

.hdr-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
}

.hdr-toggle-btn:active {
  transform: translateY(0) scale(0.96) !important;
}

.hdr-logo-wrap {
  display: flex;
  align-items: center;
  position: relative;
}


/* ────────────────────────────────────────────
   ➡️ RIGHT SIDE — User trigger area
   ──────────────────────────────────────────── */

.hdr-user-trigger {
  display: flex !important;
  align-items: center !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 2 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  padding: 6px 14px 6px 16px !important;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(8px) !important;
  gap: 0 !important;
  user-select: none !important;
}

.hdr-user-trigger:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
}

/* User text block */
.hdr-user-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: 12px;
}

.hdr-company-name {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: white;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.hdr-username {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.2;
}

/* Avatar */
.hdr-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e40af 0%, #6366f1 100%);
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  overflow: hidden;
  transition: all 300ms ease;
}

.hdr-user-trigger:hover .hdr-avatar {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hdr-avatar-letter {
  color: white;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}

.hdr-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Chevron */
.hdr-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Rotate chevron when dropdown is open */
.hdr-user-trigger:has(.collapse.show) .hdr-chevron {
  transform: rotate(180deg);
}


/* ────────────────────────────────────────────
   🗂️ DROPDOWN PANEL — Glassmorphic Premium
   ──────────────────────────────────────────── */

.hdr-dropdown-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 1010;
  min-width: 260px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 16px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.12),
    0 8px 24px rgba(124, 58, 237, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  overflow: hidden;
  animation: hdr-dropdown-in 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: top right;
}

/* Top gradient accent */
.hdr-dropdown-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7c3aed, #3b82f6, #10b981);
  z-index: 1;
}

/* Divider */
.hdr-dropdown-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.1), transparent);
  margin: 0;
}


/* ────────────────────────────────────────────
   👤 DROPDOWN — User profile section
   ──────────────────────────────────────────── */

.hdr-dropdown-user-section {
  padding: 1rem 1rem 0.85rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.04) 0%, rgba(59, 130, 246, 0.03) 100%);
}

.hdr-dropdown-user-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hdr-dropdown-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid rgba(124, 58, 237, 0.15);
}

.hdr-dropdown-avatar-letter {
  color: white;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.hdr-dropdown-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.hdr-dropdown-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hdr-dropdown-user-name {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.1rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hdr-dropdown-user-email {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.3;
  display: block;
  margin-bottom: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hdr-dropdown-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  width: fit-content;
}

.hdr-plan-free {
  background: rgba(148, 163, 184, 0.12);
  color: #64748b;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.hdr-plan-premium {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(59, 130, 246, 0.08) 100%);
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.18);
  animation: hdr-badge-pulse 3s ease-in-out infinite;
}


/* ────────────────────────────────────────────
   📋 DROPDOWN — Navigation items
   ──────────────────────────────────────────── */

.hdr-dropdown-nav-section {
  padding: 0.35rem 0.5rem;
}

.hdr-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  color: inherit;
  text-decoration: none;
}

.hdr-dropdown-item:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06) 0%, rgba(59, 130, 246, 0.04) 100%);
  transform: translateX(3px);
}

.hdr-dropdown-item-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(59, 130, 246, 0.06) 100%);
  border-radius: 9px;
  color: #7c3aed;
  flex-shrink: 0;
  transition: all 250ms ease;
}

.hdr-dropdown-item:hover .hdr-dropdown-item-icon {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.14) 0%, rgba(59, 130, 246, 0.1) 100%);
  transform: scale(1.05);
}

.hdr-dropdown-item-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
  flex: 1;
}

.hdr-dropdown-item:hover .hdr-dropdown-item-label {
  color: #7c3aed;
}

.hdr-dropdown-item-arrow {
  color: #cbd5e1;
  transition: all 250ms ease;
  opacity: 0;
  transform: translateX(-4px);
}

.hdr-dropdown-item:hover .hdr-dropdown-item-arrow {
  opacity: 1;
  transform: translateX(0);
  color: #7c3aed;
}


/* ────────────────────────────────────────────
   🚪 DROPDOWN — Logout item (danger)
   ──────────────────────────────────────────── */

.hdr-dropdown-logout-section {
  padding: 0.35rem 0.5rem 0.5rem;
}

.hdr-dropdown-item-danger {
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hdr-dropdown-item-danger:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.06) 0%, rgba(239, 68, 68, 0.04) 100%) !important;
}

.hdr-dropdown-item-icon-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.06) 100%) !important;
  color: #ef4444 !important;
}

.hdr-dropdown-item-danger:hover .hdr-dropdown-item-icon-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.1) 100%) !important;
  color: #dc2626 !important;
}

.hdr-dropdown-item-label-danger {
  color: #ef4444 !important;
  font-weight: 600 !important;
}

.hdr-dropdown-item-danger:hover .hdr-dropdown-item-label-danger {
  color: #dc2626 !important;
}


/* ────────────────────────────────────────────
   📱 RESPONSIVE
   ──────────────────────────────────────────── */

@media (max-width: 768px) {
  .hdr-header {
    padding: 0 0.75rem !important;
  }

  .hdr-user-text {
    display: none;
  }

  .hdr-user-trigger {
    padding: 5px 8px !important;
    border-radius: 10px !important;
  }

  .hdr-dropdown-panel {
    min-width: 240px;
    right: -4px;
  }

  .hdr-toggle-btn {
    margin-left: 0.25rem !important;
  }
}

@media (max-width: 480px) {
  .hdr-dropdown-panel {
    min-width: 220px;
    border-radius: 14px;
  }

  .hdr-dropdown-user-section {
    padding: 0.85rem 0.85rem 0.7rem;
  }
}


/* ════════════════════════════════════════════════════════════════════════════════
   FROGGY PIXEL — HEADER PREMIUM v3
   Prefix: hdr-
   Glassmorphic dropdown, Solar icons, smooth animations
   ─── AGREGAR AL FINAL del CSS del header/sidebar existente ───
   ════════════════════════════════════════════════════════════════════════════════ */


/* ────────────────────────────────────────────
   🎬 ANIMATIONS
   ──────────────────────────────────────────── */

@keyframes hdr-dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes hdr-dropdown-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
}

@keyframes hdr-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes hdr-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.15); }
  50% { box-shadow: 0 0 0 4px rgba(124, 58, 237, 0); }
}


/* ────────────────────────────────────────────
   🏗️ HEADER SHELL
   ──────────────────────────────────────────── */

.hdr-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0 1.25rem !important;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 40%, #3b82f6 100%) !important;
  height: 60px !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 1001 !important;
  box-shadow:
    0 4px 20px rgba(99, 102, 241, 0.25),
    0 1px 3px rgba(0, 0, 0, 0.1) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(12px) !important;
}

/* Subtle animated shimmer overlay */
.hdr-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.03) 40%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.03) 60%,
    transparent 80%
  );
  background-size: 200% 100%;
  animation: hdr-shimmer 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}


/* ────────────────────────────────────────────
   ⬅️ LEFT SIDE — Toggle + Logo
   ──────────────────────────────────────────── */

.hdr-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.hdr-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 10px !important;
  color: white !important;
  cursor: pointer !important;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  backdrop-filter: blur(8px) !important;
  padding: 0 !important;
  margin-left: 0.5rem !important;
}

.hdr-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
}

.hdr-toggle-btn:active {
  transform: translateY(0) scale(0.96) !important;
}

.hdr-logo-wrap {
  display: flex;
  align-items: center;
  position: relative;
}


/* ────────────────────────────────────────────
   ➡️ RIGHT SIDE — User trigger area
   ──────────────────────────────────────────── */

.hdr-user-trigger {
  display: flex !important;
  align-items: center !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 2 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  padding: 6px 14px 6px 16px !important;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(8px) !important;
  gap: 0 !important;
  user-select: none !important;
}

.hdr-user-trigger:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
}

/* User text block */
.hdr-user-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: 12px;
}

.hdr-company-name {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: white;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.hdr-username {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.2;
}

/* Avatar */
.hdr-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e40af 0%, #6366f1 100%);
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  overflow: hidden;
  transition: all 300ms ease;
}

.hdr-user-trigger:hover .hdr-avatar {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hdr-avatar-letter {
  color: white;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}

.hdr-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Chevron */
.hdr-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  transition: transform 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Rotate chevron when dropdown is open (class-based, controlado por callback) */
.hdr-chevron.hdr-chevron-open {
  transform: rotate(180deg);
}


/* ────────────────────────────────────────────
   🗂️ DROPDOWN PANEL — Glassmorphic Premium
   ──────────────────────────────────────────── */

.hdr-dropdown-panel {
  min-width: 260px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 16px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.12),
    0 8px 24px rgba(124, 58, 237, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  overflow: hidden;
  animation: hdr-dropdown-in 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: top right;
}

/* Top gradient accent */
.hdr-dropdown-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7c3aed, #3b82f6, #10b981);
  z-index: 1;
}

/* Divider */
.hdr-dropdown-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.1), transparent);
  margin: 0;
}


/* ────────────────────────────────────────────
   👤 DROPDOWN — User profile section
   ──────────────────────────────────────────── */

.hdr-dropdown-user-section {
  padding: 1rem 1rem 0.85rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.04) 0%, rgba(59, 130, 246, 0.03) 100%);
}

.hdr-dropdown-user-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hdr-dropdown-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid rgba(124, 58, 237, 0.15);
}

.hdr-dropdown-avatar-letter {
  color: white;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.hdr-dropdown-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.hdr-dropdown-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hdr-dropdown-user-name {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.1rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hdr-dropdown-user-email {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.3;
  display: block;
  margin-bottom: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hdr-dropdown-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  width: fit-content;
}

.hdr-plan-free {
  background: rgba(148, 163, 184, 0.12);
  color: #64748b;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.hdr-plan-premium {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(59, 130, 246, 0.08) 100%);
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.18);
  animation: hdr-badge-pulse 3s ease-in-out infinite;
}


/* ────────────────────────────────────────────
   📋 DROPDOWN — Navigation items
   ──────────────────────────────────────────── */

.hdr-dropdown-nav-section {
  padding: 0.35rem 0.5rem;
}

.hdr-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  color: inherit;
  text-decoration: none;
}

.hdr-dropdown-item:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06) 0%, rgba(59, 130, 246, 0.04) 100%);
  transform: translateX(3px);
}

.hdr-dropdown-item-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(59, 130, 246, 0.06) 100%);
  border-radius: 9px;
  color: #7c3aed;
  flex-shrink: 0;
  transition: all 250ms ease;
}

.hdr-dropdown-item:hover .hdr-dropdown-item-icon {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.14) 0%, rgba(59, 130, 246, 0.1) 100%);
  transform: scale(1.05);
}

.hdr-dropdown-item-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
  flex: 1;
}

.hdr-dropdown-item:hover .hdr-dropdown-item-label {
  color: #7c3aed;
}

.hdr-dropdown-item-arrow {
  color: #cbd5e1;
  transition: all 250ms ease;
  opacity: 0;
  transform: translateX(-4px);
}

.hdr-dropdown-item:hover .hdr-dropdown-item-arrow {
  opacity: 1;
  transform: translateX(0);
  color: #7c3aed;
}


/* ────────────────────────────────────────────
   🚪 DROPDOWN — Logout item (danger)
   ──────────────────────────────────────────── */

.hdr-dropdown-logout-section {
  padding: 0.35rem 0.5rem 0.5rem;
}

.hdr-dropdown-item-danger {
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hdr-dropdown-item-danger:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.06) 0%, rgba(239, 68, 68, 0.04) 100%) !important;
}

.hdr-dropdown-item-icon-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.06) 100%) !important;
  color: #ef4444 !important;
}

.hdr-dropdown-item-danger:hover .hdr-dropdown-item-icon-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.1) 100%) !important;
  color: #dc2626 !important;
}

.hdr-dropdown-item-label-danger {
  color: #ef4444 !important;
  font-weight: 600 !important;
}

.hdr-dropdown-item-danger:hover .hdr-dropdown-item-label-danger {
  color: #dc2626 !important;
}


/* ────────────────────────────────────────────
   📱 RESPONSIVE
   ──────────────────────────────────────────── */

@media (max-width: 768px) {
  .hdr-header {
    padding: 0 0.75rem !important;
  }

  .hdr-user-text {
    display: none;
  }

  .hdr-user-trigger {
    padding: 5px 8px !important;
    border-radius: 10px !important;
  }

  .hdr-dropdown-panel {
    min-width: 240px;
    right: -4px;
  }

  .hdr-toggle-btn {
    margin-left: 0.25rem !important;
  }
}

@media (max-width: 480px) {
  .hdr-dropdown-panel {
    min-width: 220px;
    border-radius: 14px;
  }

  .hdr-dropdown-user-section {
    padding: 0.85rem 0.85rem 0.7rem;
  }
}


/* ────────────────────────────────────────────
   🧱 RIGHT WRAP — Contenedor del menú + dropdown
   ──────────────────────────────────────────── */

.hdr-right-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
}


/* ────────────────────────────────────────────
   🎯 DROPDOWN COLLAPSE — Posicionamiento
   (El Collapse ahora está fuera del trigger)
   ──────────────────────────────────────────── */

.hdr-dropdown-collapse {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1010;
}


/* ────────────────────────────────────────────
   🛡️ OVERLAY — Click-outside-to-close
   Cubre toda la pantalla (invisible) cuando
   el dropdown está abierto.
   ──────────────────────────────────────────── */

.hdr-dropdown-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1;
  cursor: default;
  /* Totalmente invisible pero clickeable */
  background: transparent;
}

.hdr-dropdown-overlay.hdr-overlay-active {
  display: block;
}