/* Custom Styles for Post-Venta GOCAR */

:root {
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --bg-dark-radial: radial-gradient(circle at top right, #1e1b4b 0%, #0f172a 60%, #020617 100%);
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --border-color: rgba(226, 232, 240, 0.8);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
  background-color: #f8fafc !important;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.97); }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

.animate-pulse {
  animation: pulse 2s infinite ease-in-out;
}

.animate-ping-small {
  animation: sse-ping 1.5s infinite;
}

@keyframes sse-ping {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.animate-blink {
  animation: bg-blink 1.2s infinite ease-in-out;
}

@keyframes bg-blink {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}

/* Filter White for Logos */
.filter-white {
  filter: brightness(0) invert(1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

#view-login {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark-radial);
}

#view-login input {
  font-size: 0.95rem;
}

/* Access Hub cards styling */
.hub-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.05) !important;
}

.hub-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.15) !important;
}

/* Gantt Scheduler Timeline CSS */
#gantt-chart-wrapper {
  transform-origin: top left;
  transition: zoom 0.15s ease-out;
}

.gantt-row-isolated-hidden {
  display: none !important;
}

.gantt-section-header-isolated-hidden {
  display: none !important;
}

/* Fullscreen mode for timeline */
.timeline-card-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 1060 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: #f8fafc !important;
  display: flex !important;
  flex-direction: column !important;
}

.timeline-card-fullscreen #gantt-chart-wrapper {
  flex-grow: 1 !important;
  max-height: calc(100vh - 110px) !important;
}

.gantt-grid {
  display: grid;
  grid-template-columns: 200px 120px 1fr;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background-color: #fff;
}

.gantt-header-row {
  display: contents;
}

.gantt-header-cell {
  background-color: #f8fafc;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.8rem;
  color: #64748b;
  text-transform: uppercase;
  border-bottom: 2px solid #e2e8f0;
}

.gantt-row {
  display: contents;
}

.gantt-cell {
  padding: 4px 8px;
  border-bottom: 1px solid #f1f5f9;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.gantt-timeline-cell {
  position: relative;
  background-color: #fafbfd;
  overflow-x: auto;
  white-space: nowrap;
}

/* Absolute positioned blocks inside Gantt timelines */
.gantt-track {
  position: relative;
  height: 44px;
  width: 100%;
}

.gantt-block {
  position: absolute;
  height: 38px;
  top: 3px;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 2px 4px -1px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 20;
  pointer-events: auto;
}

.gantt-block:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px -2px rgba(0,0,0,0.15);
}

.gantt-break-block {
  position: absolute;
  height: 32px;
  top: 5px;
  background: repeating-linear-gradient(
    45deg,
    #f1f5f9,
    #f1f5f9 10px,
    #e2e8f0 10px,
    #e2e8f0 20px
  );
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.7rem;
}

.gantt-offshift-block {
  border-radius: 4px;
  user-select: none;
  transition: opacity 0.15s ease;
}
.gantt-offshift-block:hover {
  opacity: 0.95;
}

.gantt-offshift-entrada {
  background-color: rgba(236, 253, 245, 0.85);
  background-image: repeating-linear-gradient(45deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.25) 8px, transparent 8px, transparent 16px);
}

.gantt-offshift-salida {
  background-color: rgba(254, 242, 242, 0.85);
  background-image: repeating-linear-gradient(45deg, rgba(239, 68, 68, 0.25), rgba(239, 68, 68, 0.25) 8px, transparent 8px, transparent 16px);
}

.gantt-meal-block {
  cursor: default !important;
  user-select: none;
}

.tecnico-cell-offshift-entrada {
  background-color: rgba(236, 253, 245, 0.85) !important;
  background-image: repeating-linear-gradient(45deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.25) 8px, transparent 8px, transparent 16px) !important;
  cursor: not-allowed;
}

.tecnico-cell-offshift-salida {
  background-color: rgba(254, 242, 242, 0.85) !important;
  background-image: repeating-linear-gradient(45deg, rgba(239, 68, 68, 0.25), rgba(239, 68, 68, 0.25) 8px, transparent 8px, transparent 16px) !important;
  cursor: not-allowed;
}

.tecnico-cell-meal {
  background-color: #fef3c7 !important;
  background-image: repeating-linear-gradient(45deg, rgba(245, 158, 11, 0.25), rgba(245, 158, 11, 0.25) 8px, transparent 8px, transparent 16px) !important;
  cursor: not-allowed;
}

/* Time labels bar inside timeline */
.gantt-time-marker-container {
  display: flex;
  position: relative;
  height: 36px;
  border-bottom: 2px solid #e2e8f0;
  background-color: #f8fafc;
}

.gantt-time-marker {
  position: absolute;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  border-left: 1px solid #e2e8f0;
  height: 100%;
  padding-top: 8px;
}

/* Current time line tracker */
.gantt-now-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: #dc2626;
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.7);
  z-index: 35;
  pointer-events: none;
}

.gantt-now-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #dc2626;
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.9);
}

/* Cursor and interactive utilities */
.cursor-pointer {
  cursor: pointer !important;
}

.hover-bg-light:hover {
  background-color: rgba(0, 0, 0, 0.04) !important;
}

/* Dashboard interactive items */
#dash-card-abiertas,
#dash-card-pendientes,
#dash-card-terminados,
#dash-por-atender-card {
  cursor: pointer !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#dash-card-abiertas:hover,
#dash-card-pendientes:hover,
#dash-card-terminados:hover,
#dash-por-atender-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.12) !important;
}

#dash-asesores-table tbody tr td span.badge {
  cursor: pointer !important;
  transition: transform 0.15s ease, filter 0.15s ease;
}

#dash-asesores-table tbody tr td span.badge:hover {
  transform: scale(1.15);
  filter: brightness(0.9);
}

#dash-asesores-table tbody tr td:first-child {
  cursor: pointer !important;
}

#dash-asesores-table tbody tr td:first-child:hover {
  color: var(--primary-color) !important;
}

#dash-aging-row-0-30,
#dash-aging-row-31-60,
#dash-aging-row-60 {
  cursor: pointer !important;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

#dash-aging-row-0-30:hover,
#dash-aging-row-31-60:hover,
#dash-aging-row-60:hover {
  background-color: #f1f5f9 !important;
  transform: translateX(3px);
}

/* Status colors and pills (Sincronizados con Paletas Físicas de Taller: T=Verde, ES=Amarillo, PR=Naranja, P=Negro, L=Azul) */
.bg-indigo { background-color: #6366f1 !important; color: #fff !important; }
.bg-teal { background-color: #0d9488 !important; color: #fff !important; }
.badge-cita { background-color: #8a3f46; color: #fff; } /* Cita / Guinda */
.badge-abierta { background-color: #8c8c8c; color: #fff; } /* Abierta o Sin Asignar / Gris */
.badge-espera-servicio { background-color: #f1c232 !important; color: #000000 !important; } /* ES: Espera de servicio / Amarillo */
.badge-proceso { background-color: #1e293b !important; color: #ffffff !important; } /* P: En Proceso / Negro */
.badge-autorizacion { background-color: #c9b6e4 !important; color: #000000 !important; } /* Esperando Autorización / Morado */
.badge-refaccion { background-color: #ea580c !important; color: #ffffff !important; } /* PR: Pendiente de Refacción / Naranja */
.badge-pausa { background-color: #ea580c !important; color: #ffffff !important; } /* PR: Detenido por Refacción o Pausa / Naranja */
.badge-lavado { background-color: #2563eb !important; color: #ffffff !important; } /* L: Lavado / Azul */
.badge-terminado { background-color: #2e7d32 !important; color: #ffffff !important; } /* T: Unidad Terminada / Verde */
.badge-entregado { background-color: #15803d !important; color: #ffffff !important; } /* Entregado / Verde */
.badge-prueba { background-color: #111111 !important; color: #ffffff !important; } /* Prueba de Manejo / Negro */

/* Blinking for Overdue - uses opacity so !important on background-color doesn't block it */
.overdue-blink {
  animation: overdue-opacity-blink 0.6s steps(1, end) infinite !important;
}

@keyframes overdue-opacity-blink {
  0%   { opacity: 1; }
  50%  { opacity: 0.1; }
  100% { opacity: 1; }
}

.badge-blink-red {
  color: #fff !important;
  animation: blink-red 1.2s infinite;
}

@keyframes blink-red {
  0%, 100% { background-color: #dc2626; box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  50% { background-color: #ef4444; box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}

/* Blinking border & glow for delayed technician cards in schedule table */
.tecnico-overdue-card {
  animation: tec-card-blink 1.2s infinite ease-in-out !important;
  border: 2px solid #dc2626 !important;
}

@keyframes tec-card-blink {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.8), 0 1px 3px rgba(0, 0, 0, 0.2);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 14px 3px rgba(220, 38, 38, 0.9), 0 2px 6px rgba(220, 38, 38, 0.4);
    filter: brightness(1.15);
  }
}

/* Status circle indicators */
.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

/* Live updates notification animation ping */
.sse-ping-status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #22c55e;
  display: inline-block;
  margin-right: 4px;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: status-pulsate 1.5s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes status-pulsate {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Signature drawing board */
#signature-pad {
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  cursor: crosshair;
  background-color: #fafbfd;
}

/* Timeline flow connector highlight */
.gantt-block-flow-highlight {
  box-shadow: 0 0 0 3px #2563eb, 0 4px 12px rgba(37, 99, 235, 0.4) !important;
  transform: translateY(-2px) scale(1.02) !important;
  transition: all 0.2s ease !important;
  z-index: 30 !important;
}

@keyframes gantt-flow-dash {
  to {
    stroke-dashoffset: -20;
  }
}

.gantt-flow-line {
  stroke-dasharray: 8, 4;
  animation: gantt-flow-dash 0.6s linear infinite;
}

/* Force Bootstrap Modals to always render above backdrops */
.modal {
  z-index: 1065 !important;
}
.modal-backdrop {
  z-index: 1050 !important;
}

/* ==========================================
   POST VENTA AI CHAT STYLES
   ========================================== */
.bg-indigo {
  background-color: #6366f1 !important;
}
.text-indigo {
  color: #6366f1 !important;
}
.bg-indigo-subtle {
  background-color: #eef2ff !important;
  color: #4f46e5 !important;
}
.border-indigo-subtle {
  border-color: #c7d2fe !important;
}

.hover-bg-light:hover {
  background-color: #f1f5f9 !important;
}
.hover-text-white:hover {
  color: #ffffff !important;
}
.hover-text-danger:hover {
  color: #ef4444 !important;
}
.hover-shadow:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
  border-color: #c7d2fe !important;
}

.ai-chip {
  font-size: 0.82rem !important;
  font-weight: 500;
  padding: 0.35rem 0.85rem !important;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  border-radius: 50rem !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  background-color: #ffffff !important;
  color: #475569 !important;
  border-color: #cbd5e1 !important;
}
.ai-chip:hover {
  background-color: #eef2ff !important;
  border-color: #818cf8 !important;
  color: #4338ca !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.15);
}

.ai-welcome-card {
  transition: all 0.2s ease;
  cursor: pointer;
}
.ai-welcome-card:hover {
  transform: translateY(-2px);
}

.ai-assistant-body table {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.ai-assistant-body table th {
  background-color: #f8fafc;
  color: #334155;
  font-weight: 600;
}
.ai-assistant-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==========================================================================
   Post Venta AI: Vehicle Full Report, Generic Responses & Lightbox Components
   ========================================================================== */
.ai-assistant-body {
  padding: 1.25rem 1.5rem !important;
  font-size: 0.94rem;
  line-height: 1.6;
  color: #1e293b;
}

.ai-assistant-body.ai-report-container {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Generic Markdown lists & typography */
.ai-assistant-body p {
  margin-bottom: 0.75rem;
}
.ai-assistant-body p:last-child {
  margin-bottom: 0;
}

.ai-assistant-body ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0.6rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ai-assistant-body li {
  position: relative;
  padding: 0.4rem 0.85rem 0.4rem 1.75rem;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.ai-assistant-body li::before {
  content: '•';
  position: absolute;
  left: 0.7rem;
  top: 0.36rem;
  color: #6366f1;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: bold;
}

.ai-assistant-body li strong {
  color: #0f172a;
}

.ai-assistant-body ol {
  padding-left: 1.25rem;
  margin-top: 0.6rem;
  margin-bottom: 0.75rem;
}

.ai-assistant-body ol li {
  background: transparent;
  border: none;
  padding: 0.2rem 0;
}
.ai-assistant-body ol li::before {
  display: none;
}

/* Vehicle Full Report Wrapper */
.ai-report-wrapper {
  font-family: inherit;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  border: 1px solid #cbd5e1;
  background: #ffffff;
}

.ai-report-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
  padding: 1.25rem 1.5rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-report-content {
  padding: 1.25rem 1.25rem 0.75rem 1.25rem !important;
  background: #f8fafc;
}

.ai-plate-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 1.5px;
  font-weight: 800;
  background-color: #fef08a;
  color: #854d0e;
  border: 1.5px solid #ca8a04;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.ai-order-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  font-size: 0.8rem;
  background-color: rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 2px 8px;
  border-radius: 6px;
}

.ai-section-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.ai-section-box:last-child {
  margin-bottom: 0;
}

.ai-section-header {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.65rem 1rem;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease;
}

.ai-section-header:hover {
  background: #f1f5f9;
}

.ai-section-body {
  padding: 0.9rem 1rem;
  background: #ffffff;
}

/* Timeline Vertical */
.ai-timeline {
  position: relative;
  padding-left: 28px;
}

.ai-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 11px;
  width: 2px;
  background: #cbd5e1;
}

.ai-timeline-node {
  position: relative;
  margin-bottom: 1rem;
}

.ai-timeline-node:last-child {
  margin-bottom: 0;
}

.ai-timeline-icon {
  position: absolute;
  left: -28px;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #ffffff;
  box-shadow: 0 0 0 3px #ffffff;
  z-index: 2;
}

/* Comments Card */
.ai-comment-bubble {
  background: #f8fafc;
  border-left: 3.5px solid #0284c7;
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.5rem;
  transition: background-color 0.15s ease;
}

.ai-comment-bubble:last-child {
  margin-bottom: 0;
}

.ai-comment-bubble:hover {
  background: #f1f5f9;
}

/* Media Thumbnails */
.ai-thumb-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-thumb-wrapper {
  width: 78px;
  height: 78px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  position: relative;
  background-color: #f1f5f9;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ai-thumb-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-color: #94a3b8;
}

.ai-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ai-video-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.3rem;
  transition: background 0.2s ease;
}

.ai-thumb-wrapper:hover .ai-video-thumb-overlay {
  background: rgba(0, 0, 0, 0.25);
}

/* Lightbox Modal */
.ai-lightbox-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(6px);
  z-index: 10550;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

.ai-lightbox-container {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
}

.ai-lightbox-img.zoomed {
  transform: scale(1.6);
  cursor: zoom-out;
}

.ai-lightbox-img {
  cursor: zoom-in;
}

.ai-pill-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}

/* Sticky technician column in Horario schedule table */
#tecnicos-schedule-table th:first-child,
#tecnicos-schedule-table td:first-child {
  position: sticky !important;
  left: 0 !important;
  border-right: 2px solid #cbd5e1 !important;
  box-shadow: 3px 0 6px rgba(0, 0, 0, 0.06);
}

#tecnicos-schedule-table th:first-child {
  z-index: 10 !important;
  background-color: #f8fafc !important;
}

#tecnicos-schedule-table td:first-child {
  z-index: 5 !important;
  background-color: #f8fafc !important;
}

/* ==========================================
   GLOBAL AJAX LOADING SYSTEM
   ========================================== */

.global-ajax-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3.5px;
  z-index: 100000;
  pointer-events: none;
  background: rgba(14, 165, 233, 0.15);
  overflow: hidden;
}

.global-ajax-progress-track {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8 0%, #2563eb 35%, #818cf8 70%, #38bdf8 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.8), 0 0 4px rgba(37, 99, 235, 0.6);
  animation: ajax-progress-shimmer 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes ajax-progress-shimmer {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(100%);
  }
}

.global-ajax-pill {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.94);
  color: #f8fafc;
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  animation: ajax-pill-slide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes ajax-pill-slide {
  from {
    opacity: 0;
    transform: translate(-50%, -8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.global-ajax-pill .spinner-border {
  width: 0.95rem;
  height: 0.95rem;
  border-width: 0.16em;
  color: #38bdf8 !important;
}

.global-ajax-pill-text {
  color: #f8fafc;
  font-size: 0.82rem;
  white-space: nowrap;
}



