/* Estilos para el Loading Screen inicial */
#initial-loader {
  position: fixed;
  inset: 0;
  background-color: #f5f7fa;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 8888888;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  transition: opacity 0.5s ease-out;
}

#initial-loader .spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(42, 113, 243, 0.15); /* #2A71F3 = rgb(42, 113, 243) */
  border-top-color: #2A71F3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 24px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#initial-loader p {
  color: #777777;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  margin: 0;
}

/* Estilos para el modal overlay que bloquea la pantalla */
#update-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9999999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

#update-dialog {
  background-color: #ffffff;
  color: #333333;
  padding: 32px 24px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-align: center;
  max-width: 340px;
  width: 85%;
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

#update-dialog .update-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

#update-dialog .update-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #111111;
}

#update-dialog .update-text {
  font-size: 15px;
  font-weight: 400;
  color: #555555;
  margin: 0 0 28px 0;
  line-height: 1.5;
}

#update-dialog .update-btn {
  background-color: #2A71F3;
  color: #ffffff;
  border: none;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

#update-dialog .update-btn:hover {
  background-color: #1a5bd1; /* Hover sutil más oscuro */
}

#update-dialog .update-btn:active {
  transform: scale(0.96);
}
