@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-card-solid: #1e293b;
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-yellow: #f59e0b;
  --accent-purple: #8b5cf6;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-glow: 0 10px 30px rgba(0, 0, 0, 0.3);
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  -webkit-tap-highlight-color: transparent;
}

body {
  background: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
}

/* ==================================================== */
/* ESTILOS APP MÓVIL (TRABAJADORES - Single Column)     */
/* ==================================================== */
body.mobile-body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12px;
  background-image: 
    radial-gradient(at 0% 0%, rgba(6, 182, 212, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.12) 0px, transparent 50%);
}

.mobile-app {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: var(--glass-glow);
}

.mobile-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-brand {
  font-size: 1.8rem;
  color: var(--accent-cyan);
}

.mobile-header h1 {
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mobile-header p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dot-online {
  width: 10px;
  height: 10px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
}

.card-mobile {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--glass-glow);
}

.employee-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.emp-details {
  flex-grow: 1;
}

.emp-details h2 {
  font-size: 1.05rem;
  font-weight: 700;
}

.emp-details p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tag-dept {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.section-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-action-mobile {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-action-mobile.active-in {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
  border-color: var(--accent-green);
  color: var(--accent-green);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}

.btn-action-mobile.active-out {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(244, 63, 94, 0.2));
  border-color: var(--accent-red);
  color: var(--accent-red);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.25);
}

.btn-primary-mobile {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

.btn-secondary-mobile {
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.flex-col { display: flex; flex-direction: column; }
.gap-12 { gap: 12px; }

/* Modales bloqueantes y notificaciones centralizadas */
.feedback-toast {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.feedback-card {
  border: 2px solid var(--accent-cyan);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.15);
}

.feedback-toast.success .feedback-card {
  border-color: var(--accent-green);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.25);
}

.feedback-toast.error .feedback-card {
  border-color: var(--accent-red);
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.25);
}

.feedback-toast.theme .feedback-card {
  border-color: var(--accent-purple);
  box-shadow: 0 0 35px rgba(139, 92, 246, 0.25);
}

/* Anillo animador de carga centralizado */
.feedback-loader-ring {
  position: absolute;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 4px solid rgba(6, 182, 212, 0.08);
  border-top-color: var(--accent-cyan);
  animation: spin 0.8s linear infinite;
  transition: all 0.3s ease;
}

.feedback-toast.success .feedback-loader-ring {
  border: 4px solid rgba(16, 185, 129, 0.15);
  border-top-color: var(--accent-green);
  animation: pulse-green 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.feedback-toast.error .feedback-loader-ring {
  border: 4px solid rgba(239, 68, 68, 0.15);
  border-top-color: var(--accent-red);
  animation: pulse-red 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.feedback-toast.theme .feedback-loader-ring {
  border: 4px solid rgba(139, 92, 246, 0.15);
  border-top-color: var(--accent-purple);
  animation: pulse-purple 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

#feedback-icon {
  font-size: 2.3rem;
  color: var(--accent-cyan);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feedback-toast.success #feedback-icon {
  color: var(--accent-green);
  transform: scale(1.1);
}

.feedback-toast.error #feedback-icon {
  color: var(--accent-red);
  transform: scale(1.1);
}

.feedback-toast.theme #feedback-icon {
  color: var(--accent-purple);
  transform: scale(1.1);
}

/* Animaciones y efectos de pulso */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); transform: scale(1); }
  70% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); transform: scale(1.03); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); transform: scale(1); }
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); transform: scale(1); }
  70% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); transform: scale(1.03); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); transform: scale(1); }
}

@keyframes pulse-purple {
  0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.5); transform: scale(1); }
  70% { box-shadow: 0 0 0 12px rgba(139, 92, 246, 0); transform: scale(1.03); }
  100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); transform: scale(1); }
}

.status-icon-glow {
  text-shadow: 0 0 12px currentColor;
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--glass-glow);
}

.form-group {
  display: flex; flex-direction: column; gap: 6px;
}

.form-group label {
  font-size: 0.8rem; color: var(--text-muted); font-weight: 600;
}

.form-control {
  width: 100%; padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-main); font-size: 0.95rem; outline: none;
}

.form-control:focus { border-color: var(--accent-cyan); }

.btn-icon {
  background: none; border: none; color: var(--text-muted); font-size: 1.1rem; cursor: pointer; padding: 6px;
}
.btn-icon:hover { color: var(--accent-cyan); }

#reader-mobile {
  width: 100%; border-radius: 16px; overflow: hidden; border: 2px solid var(--accent-cyan); margin-top: 10px;
}

/* ==================================================== */
/* ESTILOS PORTAL WEB ADMIN (`/admin.html`)             */
/* ==================================================== */
body.admin-body {
  background: var(--bg-primary);
  color: var(--text-main);
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 250px;
  background: var(--bg-card-solid);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  flex-shrink: 0;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  position: sticky;
  top: 0;
  height: 100vh;
  box-sizing: border-box;
}

/* SIDEBAR COLLAPSED STATE */
.admin-sidebar.collapsed {
  width: 78px;
  padding: 20px 10px;
}

.admin-sidebar.collapsed .brand-info span,
.admin-sidebar.collapsed .nav-btn span,
.admin-sidebar.collapsed .btn-logout span,
.admin-sidebar.collapsed #session-info-container {
  display: none !important;
}

.admin-sidebar.collapsed .sidebar-brand {
  flex-direction: column-reverse !important;
  gap: 12px !important;
  justify-content: center !important;
}

.admin-sidebar.collapsed .brand-info {
  justify-content: center;
  width: 100%;
}

.admin-sidebar.collapsed .nav-btn,
.admin-sidebar.collapsed .btn-logout {
  justify-content: center;
  padding: 12px 0;
}

.admin-sidebar.collapsed .nav-btn i,
.admin-sidebar.collapsed .btn-logout i {
  font-size: 1.25rem;
  margin: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 30px;
}

.sidebar-menu {
  display: flex; flex-direction: column; gap: 8px; flex-grow: 1;
}

.nav-btn {
  width: 100%; padding: 12px 16px; border-radius: 12px; border: none;
  background: transparent; color: var(--text-muted); font-size: 0.9rem; font-weight: 600;
  display: flex; align-items: center; gap: 10px; cursor: pointer; transition: all 0.2s ease;
}

.nav-btn.active, .nav-btn:hover {
  background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan);
}

.btn-logout {
  width: 100%; padding: 12px; border-radius: 12px; border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1); color: var(--accent-red); font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

.admin-main {
  flex-grow: 1;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-header {
  display: flex; justify-content: space-between; align-items: center;
}

.admin-header h1 { font-size: 1.6rem; font-weight: 700; }
.admin-header p { font-size: 0.85rem; color: var(--text-muted); }

.admin-tab-content { display: none; flex-direction: column; gap: 20px; }
.admin-tab-content.active { display: flex; }

/* MALLA EXCEL ESTILOS CON GUARDIA (G) */
.toolbar-malla {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--bg-card-solid); padding: 14px 20px; border-radius: 16px; border: 1px solid var(--border-color);
}

.legend-box { display: flex; gap: 10px; flex-wrap: wrap; }
.legend-item { padding: 4px 10px; border-radius: 8px; font-size: 0.8rem; font-weight: 600; }
.tag-x { background: rgba(16, 185, 129, 0.2); color: var(--accent-green); border: 1px solid var(--accent-green); }
.tag-gp { background: rgba(16, 185, 129, 0.2); color: var(--accent-green); border: 1px solid var(--accent-green); }
.tag-xp { background: rgba(16, 185, 129, 0.2); color: var(--accent-green); border: 1px solid var(--accent-green); }
.tag-g { background: rgba(139, 92, 246, 0.25); color: var(--accent-purple); border: 1px solid var(--accent-purple); }
.tag-l { background: rgba(14, 165, 233, 0.2); color: var(--accent-cyan); border: 1px solid var(--accent-cyan); }
.tag-v { background: rgba(100, 116, 139, 0.2); color: var(--text-muted); border: 1px solid var(--border-color); }

.excel-table-wrapper {
  width: 100%; overflow-x: auto; background: var(--bg-card-solid);
  border-radius: 16px; border: 1px solid var(--border-color);
}

.excel-table {
  width: 100%; border-collapse: collapse; font-size: 0.85rem; text-align: center;
}

.excel-table th, .excel-table td {
  padding: 8px 6px; border: 1px solid var(--border-color); white-space: nowrap;
}

.excel-table th { background: var(--bg-primary); color: var(--text-muted); font-size: 0.75rem; }

.excel-cell {
  cursor: pointer; font-weight: 700; font-size: 0.9rem; user-select: none; transition: background 0.15s ease;
}

.cell-x { background: transparent; color: var(--text-main); }
.cell-g { background: rgba(139, 92, 246, 0.25); color: var(--accent-purple); }
.cell-gp { background: rgba(16, 185, 129, 0.15) !important; color: var(--accent-green) !important; }
.cell-xp { background: rgba(16, 185, 129, 0.15) !important; color: var(--accent-green) !important; }
.cell-l { background: rgba(14, 165, 233, 0.15) !important; color: var(--accent-cyan) !important; }
.cell-v { background: rgba(100, 116, 139, 0.15) !important; color: var(--text-muted) !important; }

.grid-sedes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.badge-dept { padding: 3px 8px; border-radius: 10px; font-size: 0.75rem; background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }

/* HORARIO SEMANAL MÓVIL */
.weekly-schedule-container {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}

/* ==================================================== */
/* DISEÑO RESPONSIVO Y ESTILOS DE KPIS DEL PORTAL ADMIN */
/* ==================================================== */

.grid-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.kpi-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: var(--glass-glow);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kpi-card span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.kpi-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Limitación de tamaño para gráficos más elegantes */
.chart-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--glass-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chart-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 12px;
  align-self: flex-start;
}

.chart-card canvas {
  max-height: 200px !important;
  max-width: 100% !important;
  object-fit: contain;
}

/* Barra de herramientas responsiva */
.toolbar-malla {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.toolbar-malla > div {
  flex-grow: 1;
  min-width: 150px;
}

/* Media Queries para Tablets y Móviles */
@media (max-width: 1024px) {
  .charts-row, .grid-sedes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .admin-layout {
    flex-direction: column;
  }
  
  .admin-sidebar {
    width: 100% !important;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
    position: static !important;
    height: auto !important;
  }
  
  .admin-sidebar.collapsed {
    width: 100% !important;
    padding: 16px;
  }
  
  /* Mostrar menús de forma horizontal en móviles */
  .admin-sidebar.collapsed .brand-info span,
  .admin-sidebar.collapsed .nav-btn span,
  .admin-sidebar.collapsed .btn-logout span,
  .admin-sidebar.collapsed #session-info-container,
  .admin-sidebar #session-info-container {
    display: none !important; /* Ocultar para ahorrar espacio en barra superior */
  }
  
  .admin-sidebar .sidebar-brand {
    justify-content: space-between !important;
    margin-bottom: 15px !important;
  }
  
  #btn-toggle-sidebar {
    display: none !important; /* Ocultar toggle en móviles */
  }
  
  .sidebar-menu {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
  }
  
  .nav-btn {
    width: auto;
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  
  .btn-logout {
    width: auto;
    padding: 8px 16px;
    align-self: flex-start;
  }
  
  .admin-main {
    padding: 16px;
  }
  
  .toolbar-malla {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
}

/* ==================================================== */
/* ESTILOS DE MEJORAS Y PERSONALIZACIÓN DE TEMAS        */
/* ==================================================== */

/* TEMAS ADICIONALES */
body.theme-sunset {
  --bg-primary: #1c0d02;
  --bg-card: rgba(44, 24, 9, 0.7);
  --bg-card-solid: #2c1809;
  --accent-cyan: #f97316; /* Naranja */
  --accent-purple: #ef4444; /* Rojo/Coral */
  --text-main: #fff7ed;
  --border-color: rgba(249, 115, 22, 0.2);
}

body.theme-forest {
  --bg-primary: #061f14;
  --bg-card: rgba(10, 45, 30, 0.7);
  --bg-card-solid: #0a2d1e;
  --accent-cyan: #10b981; /* Esmeralda */
  --accent-purple: #84cc16; /* Lima */
  --text-main: #f0fdf4;
  --border-color: rgba(16, 185, 129, 0.2);
}

body.theme-cyberpunk {
  --bg-primary: #120420;
  --bg-card: rgba(30, 9, 51, 0.7);
  --bg-card-solid: #1e0933;
  --accent-cyan: #ff007f; /* Rosa Neón */
  --accent-purple: #00f0ff; /* Celeste Neón */
  --text-main: #fcf9ff;
  --border-color: rgba(255, 0, 127, 0.25);
}

body.theme-light {
  --bg-primary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-card-solid: #ffffff;
  --accent-cyan: #0284c7; /* Azul cielo */
  --accent-blue: #2563eb;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: rgba(15, 23, 42, 0.1);
  --glass-glow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

/* Filtro inteligente para invertir siluetas blancas a negras y mantener cian */
body.theme-light .brand img,
body.theme-light .modal-card img,
body.theme-light .sidebar-brand img,
body.theme-light .card-main img {
  -webkit-filter: invert(1) hue-rotate(180deg) !important;
  filter: invert(1) hue-rotate(180deg) !important;
}

/* ESTILOS PARA TABLAS ESTÁNDAR (Puntualidad, Personal) */
.table-container {
  width: 100%;
  overflow-x: auto;
  margin-top: 12px;
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table-container th, 
.table-container td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  white-space: nowrap;
}

.table-container th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-weight: 600;
  border-top: 1px solid var(--border-color);
}

.table-container tbody tr {
  transition: background 0.15s ease;
}

.table-container tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* DRAG & DROP EN FILAS DE LA MALLA */
.excel-table tbody tr {
  transition: background 0.15s ease;
}

.excel-table tbody tr.dragging-row {
  opacity: 0.5;
  background: rgba(6, 182, 212, 0.2) !important;
  border: 2px dashed var(--accent-cyan);
}

.drag-handle {
  cursor: grab;
  user-select: none;
  width: 30px;
}

.drag-handle:active {
  cursor: grabbing;
}

/* ACCIÓN ÚNICA CON ANIMACIÓN EN APP MÓVIL */
.single-action-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  width: 100%;
  margin-top: 8px;
}

.btn-action-mobile-single {
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), 
              background 0.3s ease, 
              box-shadow 0.3s ease, 
              border-color 0.3s ease;
  transform-style: preserve-3d;
}

.btn-action-mobile-single.active-in {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15));
  border-color: var(--accent-green);
  color: var(--accent-green);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
}

.btn-action-mobile-single.active-out {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(244, 63, 94, 0.15));
  border-color: var(--accent-red);
  color: var(--accent-red);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.2);
}

.btn-action-mobile-single.completed {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-color);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

/* Efectos de transición en 3D (flip vertical y reducción de escala) */
.btn-action-mobile-single.scale-down {
  transform: scale(0.8) rotateX(90deg);
  opacity: 0;
}

/* SELECTOR DE TEMAS GENERAL */
.theme-selector-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
}

.theme-selector-container label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.theme-select {
  background: rgba(15, 23, 42, 0.8);
  color: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.8rem;
  outline: none;
  cursor: pointer;
  width: 100%;
}

/* Estilo Gmail / Mensajería para Solicitudes */
.inbox-list-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}
.inbox-list-item:hover {
  background: rgba(255, 255, 255, 0.02);
}
.inbox-list-item.active {
  background: rgba(0, 242, 254, 0.06);
  border-left: 4px solid var(--accent-cyan);
}
.inbox-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--text-main);
  flex-shrink: 0;
}

/* Botones Estilizados para Solicitudes */
.btn-solicitud-submit {
  background: linear-gradient(135deg, #00f2fe, #4facfe) !important;
  color: #000 !important;
  font-weight: 800 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25) !important;
  transition: all 0.2s ease !important;
  border: none !important;
}
.btn-solicitud-submit:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4) !important;
}
#btn-approve-detail, #btn-reject-detail {
  transition: all 0.2s ease !important;
}
#btn-approve-detail:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.1) !important;
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4) !important;
}
#btn-reject-detail:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.1) !important;
  box-shadow: 0 6px 20px rgba(234, 67, 53, 0.4) !important;
}

/* Botón de escaneo / Botones de acción del panel administrativo */
.btn-scan {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue)) !important;
  color: #000 !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 10px rgba(6, 182, 212, 0.2) !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 10px 20px !important;
}
.btn-scan:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 15px rgba(6, 182, 212, 0.35) !important;
  filter: brightness(1.1) !important;
}

/* Overrides para Flatpickr Dark Theme */
.flatpickr-calendar {
  background: var(--bg-card-solid) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--glass-glow) !important;
  border-radius: 12px !important;
  font-family: inherit !important;
}
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange,
.flatpickr-day.selected.inRange, .flatpickr-day.startRange.inRange, .flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus, .flatpickr-day.startRange:focus, .flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover {
  background: var(--accent-cyan) !important;
  border-color: var(--accent-cyan) !important;
  color: #000 !important;
}
.flatpickr-day.inRange {
  background: rgba(6, 182, 212, 0.15) !important;
  box-shadow: -5px 0 0 rgba(6, 182, 212, 0.15), 5px 0 0 rgba(6, 182, 212, 0.15) !important;
}
.flatpickr-months .flatpickr-month {
  color: var(--text-main) !important;
  fill: var(--text-main) !important;
}
.flatpickr-current-month .numInputWrapper span.arrowUp:after {
  border-bottom-color: var(--text-main) !important;
}
.flatpickr-current-month .numInputWrapper span.arrowDown:after {
  border-top-color: var(--text-main) !important;
}
.flatpickr-day {
  color: var(--text-main) !important;
}
.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover {
  color: var(--text-muted) !important;
}
.flatpickr-weekday {
  color: var(--text-muted) !important;
}
.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month {
  color: var(--text-main) !important;
  fill: var(--text-main) !important;
}

/* ==================================================== */
/* SOPORTE DE IMPRESIÓN Y ESTILOS PARA LA MALLA         */
/* ==================================================== */
.print-only {
  display: none;
}

@media print {
  /* --- ESTILOS DE IMPRESIÓN PARA LA MALLA DE TURNOS --- */
  body.print-mode-malla {
    background: #ffffff !important;
    color: #000000 !important;
    font-family: var(--font-family), Arial, sans-serif !important;
    padding: 0 !important;
    margin: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Ocultar elementos innecesarios */
  body.print-mode-malla .admin-sidebar,
  body.print-mode-malla .admin-header,
  body.print-mode-malla .modal-overlay,
  body.print-mode-malla #admin-auth-overlay,
  body.print-mode-malla .btn-scan,
  body.print-mode-malla .nav-btn,
  body.print-mode-malla .badge-status,
  body.print-mode-malla .theme-selector-container,
  body.print-mode-malla .sidebar-brand {
    display: none !important;
  }

  /* Permitir visualizar la leyenda de la malla pero ocultar selectores y botones */
  body.print-mode-malla .toolbar-malla {
    display: block !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 15px 0 !important;
    box-shadow: none !important;
  }
  body.print-mode-malla .toolbar-malla > *:not(#malla-legend-box) {
    display: none !important;
  }
  body.print-mode-malla #malla-legend-box {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Dar estilos limpios a la leyenda en impresión (sobreescribiendo estilos en línea) */
  body.print-mode-malla .legend-item {
    color: #000000 !important;
    border: 1px solid #1e293b !important;
    background: #ffffff !important;
    font-size: 0.65rem !important;
    padding: 2px 6px !important;
    font-weight: bold !important;
    display: inline-block !important;
  }
  body.print-mode-malla .legend-item.tag-g {
    background-color: #e8d5f5 !important;
    color: #581c87 !important;
    border: 1px solid #d8b4fe !important;
  }
  body.print-mode-malla .legend-item.tag-gp {
    background-color: #d1fae5 !important;
    color: #065f46 !important;
    border: 1px solid #86efac !important;
  }
  body.print-mode-malla .legend-item.tag-xp {
    background-color: #fef08a !important;
    color: #713f12 !important;
    border: 1px solid #fde047 !important;
  }
  body.print-mode-malla .legend-item.tag-l {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #7dd3fc !important;
  }
  body.print-mode-malla .legend-item.tag-v {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #cbd5e1 !important;
  }

  /* Ocultar pestañas no activas y hacer que la de la malla ocupe todo */
  body.print-mode-malla .admin-tab-content {
    display: none !important;
  }
  body.print-mode-malla #tab-malla.admin-tab-content.active {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: visible !important;
  }

  /* Configuración de página horizontal en PDF/Papel */
  @page {
    size: landscape;
    margin: 0.5cm;
  }

  /* Contenedores principales */
  body.print-mode-malla .admin-main {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    overflow: visible !important;
  }

  body.print-mode-malla .excel-table-wrapper {
    background: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    overflow: visible !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Mostrar la cabecera exclusiva para impresión */
  body.print-mode-malla .print-only {
    display: block !important;
  }

  /* Estilos para el encabezado impreso */
  body.print-mode-malla #malla-print-header {
    border-bottom: 2px solid #000000 !important;
    padding-bottom: 12px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
  }

  body.print-mode-malla .print-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 6px;
  }

  body.print-mode-malla .print-company-name {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 !important;
    letter-spacing: 0.5px;
  }

  body.print-mode-malla .print-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #475569 !important;
    margin: 0 !important;
  }

  body.print-mode-malla .print-meta-row {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.85rem !important;
    color: #1e293b !important;
    text-transform: uppercase;
  }

  /* Estilos de tabla en impresión: usar separate + border-spacing 0 para evitar el bug de Chromium al ocultar columnas */
  body.print-mode-malla .excel-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    font-size: 0.62rem !important; /* Más pequeño para que quepa en horizontal */
    background: #ffffff !important;
    color: #000000 !important;
    table-layout: auto !important;
    border-left: 1px solid #1e293b !important;
    border-top: 1px solid #1e293b !important;
  }

  /* Bordes negros finos para celdas usando bordes derecho e inferior de forma individual */
  body.print-mode-malla .excel-table th,
  body.print-mode-malla .excel-table td {
    padding: 3px 2px !important; /* Muy compacto */
    border-right: 1px solid #1e293b !important;
    border-bottom: 1px solid #1e293b !important;
    border-left: none !important;
    border-top: none !important;
    color: #000000 !important;
    text-align: center !important;
  }

  /* Encabezados de tabla */
  body.print-mode-malla .excel-table th {
    background: #f1f5f9 !important; /* Gris claro para los encabezados */
    font-weight: bold !important;
  }

  /* Primera celda del día (Número y Letra) */
  body.print-mode-malla .excel-table th .day-num {
    font-weight: 800 !important;
    font-size: 0.7rem !important;
  }
  body.print-mode-malla .excel-table th .day-let {
    font-size: 0.55rem !important;
    color: #475569 !important;
  }

  /* Alinear nombre a la izquierda y hacerlo más legible */
  body.print-mode-malla .excel-table td:nth-child(2) {
    text-align: left !important;
    padding-left: 6px !important;
    font-weight: bold !important;
    font-size: 0.65rem !important;
    white-space: nowrap !important; /* Evitar saltos de línea molestos */
  }

  /* Ocultar la primera columna (el drag handle con las flechas) */
  body.print-mode-malla .excel-table th:nth-child(1),
  body.print-mode-malla .excel-table td.drag-handle {
    display: none !important;
  }

  /* Ocultar las columnas Cédula (columna 3) y Dpto (columna 4) para ahorrar espacio horizontal */
  body.print-mode-malla .excel-table th:nth-child(3),
  body.print-mode-malla .excel-table td:nth-child(3),
  body.print-mode-malla .excel-table th:nth-child(4),
  body.print-mode-malla .excel-table td:nth-child(4) {
    display: none !important;
  }

  /* SOBREESCRITURA DE COLORES DE CELDAS PARA IMPRESIÓN (Colores pastel de alto contraste y forzado exacto) */
  body.print-mode-malla .cell-x {
    background-color: #ffffff !important;
    color: #000000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  body.print-mode-malla .cell-g {
    background-color: #e8d5f5 !important;
    color: #581c87 !important;
    font-weight: bold !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  body.print-mode-malla .cell-gp {
    background-color: #d1fae5 !important;
    color: #065f46 !important;
    font-weight: bold !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  body.print-mode-malla .cell-xp {
    background-color: #fef08a !important;
    color: #713f12 !important;
    font-weight: bold !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  body.print-mode-malla .cell-l {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    font-weight: bold !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  body.print-mode-malla .cell-v {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    font-weight: bold !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body.print-mode-malla .excel-table tr {
    page-break-inside: avoid !important;
  }

  /* --- ESTILOS DE IMPRESIÓN PARA EL CÓDIGO QR --- */
  body.print-mode-qr {
    background: #f8fafc !important; /* Fondo gris claro, limpio y elegante */
    color: #0f172a !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Ocultar barra lateral y cabecera de la app admin */
  body.print-mode-qr .admin-sidebar,
  body.print-mode-qr .admin-header,
  body.print-mode-qr #admin-auth-overlay {
    display: none !important;
  }

  /* Permitir visualizar la estructura de contenedores padres para que se renderice el modal */
  body.print-mode-qr .admin-layout,
  body.print-mode-qr .admin-main,
  body.print-mode-qr #tab-sedes {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    background: #f8fafc !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  /* Ocultar todas las demás secciones e hijos de tab-sedes excepto el modal del QR */
  body.print-mode-qr .admin-tab-content:not(#tab-sedes),
  body.print-mode-qr #grid-sedes-container,
  body.print-mode-qr #tab-sedes > *:not(#modal-qr-sede) {
    display: none !important;
  }

  /* Estilo para que el modal del QR ocupe toda la pantalla de impresión y se centre */
  body.print-mode-qr #modal-qr-sede {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background: #f8fafc !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 9999 !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Cartel QR elegante para colgar en la pared */
  body.print-mode-qr #modal-qr-sede .modal-card {
    border: 4px solid #0284c7 !important; /* Borde azul corporativo */
    border-radius: 32px !important;
    background: #ffffff !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05) !important;
    max-width: 480px !important;
    width: 90% !important;
    padding: 40px !important;
    margin: 0 auto !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    position: relative !important;
  }

  /* Decorativo superior con degradado corporativo */
  body.print-mode-qr #modal-qr-sede .modal-card::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 12px !important;
    background: linear-gradient(90deg, #0284c7, #06b6d4) !important;
    border-top-left-radius: 26px !important;
    border-top-right-radius: 26px !important;
  }

  /* Logotipo centrado */
  body.print-mode-qr .print-qr-logo {
    display: block !important;
    width: 90px !important;
    height: 90px !important;
    margin-top: 10px !important;
    margin-bottom: 16px !important;
    object-fit: contain !important;
    filter: none !important;
    -webkit-filter: none !important;
  }

  /* Título de Sede */
  body.print-mode-qr #modal-qr-sede h3 {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 6px 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
  }

  /* Instrucciones en el cartel */
  body.print-mode-qr #modal-qr-sede p.qr-instruction {
    font-size: 0.95rem !important;
    color: #475569 !important;
    margin-bottom: 25px !important;
    font-weight: 500 !important;
  }

  body.print-mode-qr #modal-qr-sede button {
    display: none !important; /* Ocultar botones de acción */
  }

  /* Marco del QR */
  body.print-mode-qr #qr-canvas-container {
    background: #ffffff !important;
    padding: 20px !important;
    border: 6px solid #f1f5f9 !important; /* Marco gris claro elegante */
    border-radius: 24px !important;
    display: inline-block !important;
    margin-bottom: 20px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04) !important;
  }
  
  body.print-mode-qr #qr-canvas-container canvas,
  body.print-mode-qr #qr-canvas-container img {
    width: 240px !important;
    height: 240px !important;
  }

  /* Pie de página corporativo del cartel */
  body.print-mode-qr .print-qr-footer {
    display: block !important;
    font-size: 0.8rem !important;
    color: #64748b !important;
    margin-top: 15px !important;
    border-top: 1px solid #e2e8f0 !important;
    padding-top: 15px !important;
    width: 100% !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
  }
}

/* Excluir el QR y el logotipo de la inversión de colores del modo claro */
body.theme-light #qr-canvas-container img,
body.theme-light #qr-canvas-container canvas,
body.theme-light .print-qr-logo {
  -webkit-filter: none !important;
  filter: none !important;
}

/* Spinner Loader Global */
.loader-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.1);
  border-top: 5px solid var(--accent-cyan);
  border-radius: 50%;
  animation: spin-loader 1s linear infinite;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

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

/* ==================================================== */
/* BANDJA DE ENTRADA DESLIZANTE PARA MÓVIL (SUPERVISOR) */
/* ==================================================== */
.inbox-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
}

.inbox-drawer.open {
  right: 0;
}

.inbox-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
}

.inbox-drawer-filters {
  display: flex;
  padding: 12px 16px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  gap: 10px;
}

.inbox-drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-solicitud-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  text-align: left;
}

.mobile-solicitud-card:active {
  transform: scale(0.98);
}

.mobile-solicitud-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.mobile-solicitud-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.mobile-solicitud-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-solicitud-reason {
  font-size: 0.82rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 12px;
  border-radius: 8px;
  margin: 4px 0 0 0;
  line-height: 1.4;
  border-left: 3px solid var(--accent-cyan);
}

.mobile-solicitud-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.btn-mobile-approve {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-mobile-reject {
  flex: 1;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.inbox-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #000;
  border: none;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.inbox-floating-btn:active {
  transform: scale(0.9);
}

.inbox-floating-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: bold;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
}

