/* Variables de diseño del HelpDesk */
:root {
  --bg-color: #0f172a; /* Slate 900 (Fondo oscuro) */
  --card-bg: #1e293b; /* Slate 800 */
  --primary-color: #3b82f6; /* Azul Técnico */
  --accent-color: #10b981; /* Verde Éxito */
  --text-main: #f8fafc; /* Blanco/Gris claro */
  --text-muted: #94a3b8; /* Gris intermedio */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg-color);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Contenedor Principal */
.loader-container {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-color);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

/* Card de Carga */
.loader-content {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.3),
    0 8px 10px -6px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 90%;
  max-width: 400px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animación del Icono */
.icon-wrapper {
  margin-bottom: 1.5rem;
}

.loader-icon {
  font-size: 3.5rem;
  color: var(--primary-color);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0px rgba(59, 130, 246, 0));
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.6));
  }
}

/* Textos */
.loader-content h2 {
  color: var(--text-main);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.loading-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  height: 20px; /* Evita que el contenedor salte al cambiar el texto */
}

/* Contenedor de la Barra */
.progress-bar-container {
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  position: relative;
}

/* Relleno de la Barra con efecto de brillo */
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 999px;
  transition: width 0.15s ease-out;
  position: relative;
}

/* Texto de Porcentaje */
#percentText {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-block;
}
