body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column; /* Alinear elementos en columna */
  min-height: 100vh; /* Asegurar que el body ocupe toda la altura de la ventana */
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%);
  color: #ffffff;
}

.container {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 30px 40px;
  border-radius: 15px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 90%;
  margin: auto; /* Centrar el contenido */
}

.logo {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
}

h1 {
  margin: 0 0 20px;
  font-size: 2.5rem;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

form {
  margin-top: 20px;
  position: relative;
}

label {
  font-size: 1.2rem;
  margin-bottom: 10px;
  display: block;
}

input[type="text"] {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 20px;
}

input[type="text"]::placeholder {
  color: #d0d0d0;
}

button {
  background: #0df;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #09c;
}

button:disabled {
  background: #555;
  cursor: not-allowed;
}

/* Estilo de la barra de progreso */
#progressContainer {
  display: none;
  margin: 20px 0 0;
  text-align: center;
  position: relative;
}

#progressBar {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  height: 20px;
  margin-bottom: 10px;
  position: relative;
}

#progressFill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0df, #09c);
  transition: width 0.5s ease-in-out; /* Animación suave al cambiar el ancho */
}


@keyframes progressAnimation {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 0%; }
}

#statusMessage {
  font-size: 0.95rem;
  color: #fff;
  margin-top: 5px;
}

footer {
  margin-top: auto; /* Empujar el footer hacia el final */
  font-size: 0.9rem;
  color: #d0d0d0;
  text-align: center;
  padding: 10px 0;
}

.link {
  background: rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 5px;
  margin: 10px 0;
  color: #ffffff;
  word-wrap: break-word;
}

.link a {
  color: #00bcd4;
  text-decoration: none;
}

.link a:hover {
  text-decoration: underline;
  color: #ffffff;
}

.tips {
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  text-align: center;
}

.tips strong {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background-color: #0056b3;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

/* Estilo de los dominios como badges */
.domain-badge {
  display: inline-block;
  margin: 5px;
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  font-size: 0.9rem;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background 0.2s ease;
}

.domain-badge:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

/* Badges con color característico */
.domain-badge.amazon {
  background-color: #ff9900; /* Color típico de Amazon */
}

.domain-badge.aliexpress {
  background-color: #ff4747; /* Color rojizo típico de AliExpress */
}

.domain-badge.miravia {
  background-color: #ff0066; /* Color rojizo típico de MiRavia */
}

.domain-badge.pccomponentes {
  background-color: #ff6600; /* Color rojizo típico de PCComponentes */
}

/* Colores específicos para Amazon y AliExpress en el texto de estado */
.status-amazon {
  color: #ff9900; /* naranja Amazon */
}
.status-aliexpress {
  color: #ff4747; /* rojo AliExpress */
}
.status-miravia {
  color: #ff0066; /* rojo MiRavia */
}
.status-pccomponentes {
  color: #ff6600; /* naranja PCComponentes */
}
.status-generic {
  color: #ffffff; /* Por defecto, texto blanco */
}

/* Animación fade-in sutil para el texto de estado */
.fade-animation {
  animation: fadeInStatus 0.4s ease-in-out;
}

@keyframes fadeInStatus {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contenedor para el estado de la cola */
#queueStatus {
  margin-top: 15px;
  font-size: 1rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.3);
  padding: 10px 20px;
  border-radius: 10px;
  display: inline-block;
  text-align: center;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

/* Cambiar tamaño al actualizar */
#queueStatus.update {
  transform: scale(1.1);
}

/* Colores para el número de cola y activos */
#queueStatus span {
  font-weight: bold;
  padding: 0 5px;
  border-radius: 5px;
  margin: 0 2px;
}

#queueStatus .en-cola {
  background-color: #ffcc00;
  color: #1e3c72;
}

#queueStatus .activos {
  background-color: #00ff99;
  color: #1e3c72;
}

/* Animación para números al actualizar */
@keyframes highlightUpdate {
  0% {
    background-color: rgba(255, 255, 255, 0.5);
  }
  100% {
    background-color: inherit;
  }
}

#queueStatus span.update {
  animation: highlightUpdate 0.8s ease-in-out;
}

.en-cola {
  color: #f39c12;
}

.activos {
  color: #3498db;
}

.domain-badge {
  display: inline-block;
  padding: 5px 10px;
  margin: 5px;
  border-radius: 5px;
  background-color: #f1f1f1;
  font-weight: bold;
}

.amazon {
  background-color: #ff9900;
}

.aliexpress {
  background-color: #d04e00;
}

.miravia {
  background-color: #ff0066;
}

.pccomponentes {
  background-color: #ff6600;
}

/* Responsiveness using media queries */
@media (max-width: 768px) {
  .container {
    padding: 15px;
  }

  h1 {
    font-size: 1.8rem;
  }

  input[type="text"] {
    font-size: 0.9rem;
  }

  button {
    font-size: 0.9rem;
  }

  .tips strong {
    font-size: 1rem;
  }

  .domain-badge {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  #progressContainer {
    margin: 10px 0;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  .logo {
    width: 50px;
  }

  .tips {
    padding: 10px;
  }

  button {
    padding: 8px 16px;
  }

  input[type="text"] {
    padding: 8px;
  }

  #queueStatus {
    font-size: 0.9rem;
    padding: 8px 15px;
  }

  .domain-badge {
    padding: 6px 10px;
    margin: 3px;
    font-size: 0.8rem;
  }
}


/* Añade estos estilos al final del archivo styles.css */

/* Ajustes generales para dispositivos móviles */
@media (max-width: 768px) {
  .container {
    padding: 20px; /* Reducir el padding para dispositivos móviles */
    max-width: 100%; /* Asegurar que el contenedor ocupe todo el ancho */
  }

  h1 {
    font-size: 1.8rem; /* Reducir el tamaño del título */
  }

  input[type="text"] {
    font-size: 0.9rem; /* Reducir el tamaño de la fuente del input */
    padding: 8px; /* Reducir el padding del input */
  }

  button {
    padding: 8px 16px; /* Reducir el padding del botón */
    font-size: 0.9rem; /* Reducir el tamaño de la fuente del botón */
  }

  .tips strong {
    font-size: 1rem; /* Reducir el tamaño de la fuente del texto fuerte */
  }

  .domain-badge {
    padding: 8px 12px; /* Reducir el padding de los badges */
    font-size: 0.85rem; /* Reducir el tamaño de la fuente de los badges */
  }

  #progressContainer {
    margin: 10px 0; /* Reducir el margen de la barra de progreso */
  }

  #queueStatus {
    font-size: 0.9rem; /* Reducir el tamaño de la fuente del estado de la cola */
    padding: 8px 15px; /* Reducir el padding del estado de la cola */
  }

  .domain-badge {
    padding: 6px 10px; /* Reducir el padding de los badges */
    margin: 3px; /* Reducir el margen de los badges */
    font-size: 0.8rem; /* Reducir el tamaño de la fuente de los badges */
  }
}

/* Ajustes adicionales para pantallas muy pequeñas */
@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem; /* Reducir aún más el tamaño del título */
  }

  .logo {
    width: 50px; /* Reducir el tamaño del logo */
  }

  .tips {
    padding: 10px; /* Reducir el padding de los consejos */
  }

  button {
    padding: 8px 12px; /* Reducir aún más el padding del botón */
  }

  input[type="text"] {
    padding: 6px; /* Reducir aún más el padding del input */
  }

  #queueStatus {
    font-size: 0.8rem; /* Reducir aún más el tamaño de la fuente del estado de la cola */
    padding: 6px 10px; /* Reducir aún más el padding del estado de la cola */
  }

  .domain-badge {
    padding: 5px 8px; /* Reducir aún más el padding de los badges */
    margin: 2px; /* Reducir aún más el margen de los badges */
    font-size: 0.75rem; /* Reducir aún más el tamaño de la fuente de los badges */
  }
}