/* Container Banner (Posizionato nel flusso normale della pagina) */

.connection-banner {
  width: 100%;
  z-index: 10000;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
  background-color: #dc3545;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out, opacity 0.3s ease, background-color 0.4s ease;
}

/* Stato Visibile */

.connection-banner.show {
  max-height: 100px;
  opacity: 1;
}

/* Stato Online (Verde) */

.connection-banner.online {
  background-color: #198754;
}

/* Layout e padding del contenuto */

.banner-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.banner-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- FIX COUNTDOWN --- */

/* Sfera del Countdown: NASCOSTA di default (es. durante lo stato rosso) */

.countdown-sphere {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  user-select: none;
}

/* La sfera compare SOLO quando il banner ha la classe .online (VERDE) */

.connection-banner.online .countdown-sphere {
  display: flex;
}

/* Bottone Circolare X */

.banner-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: #ffffff;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.banner-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
}

