/* === SERVICE-STATUS.CSS - Service Status Indicator === */

.service-status {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.8rem;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeInUp 0.5s ease-out 1s forwards;
  min-width: 300px;
  max-width: 450px;
  white-space: normal;
  text-align: center;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-status:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  display: inline-block;
  background: #10b981; /* Default verde */
}

.status-dot.operational {
  background: #10b981;
}

.status-dot.warning {
  background: #f59e0b;
}

.status-dot.error {
  background: #ef4444;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Media query per schermi piccoli */
@media (max-width: 480px) {
  .service-status {
    min-width: auto;
    max-width: calc(100vw - 40px);
    font-size: 0.7rem;
    padding: 0.5rem 1rem;
  }
}

/* Media query per schermi molto piccoli */
@media (max-width: 360px) {
  .service-status {
    font-size: 0.65rem;
    padding: 0.4rem 0.8rem;
  }
  
  .status-dot {
    width: 6px;
    height: 6px;
  }
}