/* Reset e estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
    "Helvetica Neue", sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.5;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* Cards */
.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
}

.header-card {
  margin-bottom: 1.5rem;
}

.header-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Logo */
.logo-container {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.logo-circle {
  width: 32px;
  height: 32px;
  background-color: #dc2626;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
  margin-right: 8px;
}

.logo-text {
  font-size: 20px;
  font-weight: bold;
  color: #1f2937;
}

/* Queue Card */
.queue-card {
  padding: 1.5rem;
  text-align: center;
}

.queue-header {
  margin-bottom: 1.5rem;
}

.queue-header h2 {
  font-size: 20px;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.queue-header p {
  font-size: 14px;
  color: #6b7280;
}

/* Spinner */
.spinner-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  border-top-color: #3b82f6;
  animation: spin 1s linear infinite;
}

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

/* Timer */
.timer-container {
  margin-bottom: 1.5rem;
}

.timer-container p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.timer {
  font-size: 24px;
  font-weight: bold;
  color: #dc2626;
}

/* Queue Number */
.queue-number-container {
  margin-bottom: 1.5rem;
}

.queue-number-container p {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.queue-number {
  font-size: 32px;
  font-weight: bold;
  color: #1f2937;
  transition: all 0.5s ease;
}

/* Progress Bar */
.progress-container {
  width: 100%;
  height: 8px;
  background-color: #e5e7eb;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: #3b82f6;
  border-radius: 4px;
  width: 0%;
  transition: width 1s linear;
}

/* Status Message */
.status-container {
  margin-bottom: 1rem;
}

.status-message {
  font-size: 14px;
  color: #6b7280;
}

.status-warning {
  color: #f59e0b;
  font-weight: 500;
}

.status-alert {
  color: #dc2626;
  font-weight: 700;
  animation: pulse 1.5s infinite;
}

.status-success {
  color: #10b981;
  font-weight: 700;
}

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

/* Footer */
.footer-text {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 1.5rem;
  text-align: center;
}

/* Responsividade */
@media (max-width: 480px) {
  .card {
    max-width: 100%;
  }

  .queue-number {
    font-size: 28px;
  }
}
