:root {
  --azul: #213f66;
  --azul-claro: #4a90e2;
  --vermelho-status: #ff3e3e;
  --cinza-claro: #f1f5f9;
  --branco: #ffffff;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--cinza-claro);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  color: var(--azul);
  text-align: center;
}

.construction-card {
  background: var(--branco);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(33, 63, 102, 0.1);
  max-width: 400px;
  position: relative;
  overflow: visible;
  /* Permite que o balão vaze para fora */
}

.robot-scene {
  position: relative;
  margin-bottom: 30px;
}

.robot-image {
  width: 180px;
  height: auto;
  display: block;
  margin: 0 auto 15px;
  /* Espaço para o balão */
  filter: drop-shadow(0 5px 15px rgba(33, 63, 102, 0.2));
  animation: float 4s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

/* Balão reposicionado MAIS PARA CIMA */
.speech-bubble {
  position: absolute;
  background: var(--branco);
  padding: 12px 18px;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 200px;
  left: 50%;
  transform: translateX(-50%);
  top: -90px;
  /* Ajuste essa valor para subir/descer */
  font-size: 0.9rem;
  opacity: 0;
  animation: bubble-appear 1s 0.3s forwards;
  border: 1px solid var(--cinza-claro);
  z-index: 2;
  text-align: center;
}

/* Triângulo do balão apontando para a "boca" do robô */
.speech-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -10px;
  border-width: 12px 10px 0;
  border-style: solid;
  border-color: var(--branco) transparent;
}

.status-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--vermelho-status);
  color: white;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  animation: pulse 2s infinite;
  z-index: 3;
}

.status-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  display: block;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: var(--azul);
}

.subtext {
  color: #64748b;
  margin-bottom: 25px;
  font-size: 1rem;
}

.progress-container {
  background: rgba(33, 63, 102, 0.05);
  border-radius: 10px;
  height: 8px;
  margin: 0 auto;
  overflow: hidden;
  max-width: 250px;
}

.progress-bar {
  height: 100%;
  width: 65%;
  background: var(--azul-claro);
  border-radius: 10px;
  animation: progress-pulse 2.5s infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes bubble-appear {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes progress-pulse {
  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 1;
  }
}
