/* BARRA DE PROGRESSO ------------------------------------------ */
/* BARRA DE PROGRESSO ------------------------------------------ */
/* BARRA DE PROGRESSO ------------------------------------------ */

#barra_progresso {
  width: 100%;
  height: 20px;
  transform: scaleY(0.6);
  margin: 3% 0;
  border-radius: 5px;
  background-color: white;
  border: 3px solid var(--neon_gold);
  overflow-x: hidden;
  box-shadow: 0 0 10px currentColor;
  transition:
    height 1s ease,
    opacity 0.4s ease,
    transform 0.4s ease;
  opacity: 0.6;
  transform-origin: center;
  will-change: transform;
}

#barra_progresso.ativo,
#barra_progresso.completo {
  transform: scaleY(1.2);
  opacity: 1;
}

#barra_progresso.completo {
  animation: progressoCompleto 0.4s ease forwards;
}

#barra_progresso.idle {
  opacity: 1;
  animation: progressoIdle 2s ease-in-out infinite;
}

#barra_desprogresso {
  height: 100%;
  width: 100%;
  transition: transform 1s ease-in-out;
  transform-origin: right center;
  background: var(--texto_terciario);
}

@keyframes progressoIdle {
  0%,
  100% {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(0, 207, 255, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 207, 255, 0.7);
  }
}

@keyframes progressoCompleto {
  0% {
    transform: scale(0.98);
  }
  40% {
    transform: scale(1.1);
    box-shadow:
      0 0 15px rgba(0, 255, 156, 1),
      0 0 25px rgba(0, 207, 255, 1);
  }
  100% {
    transform: scale(1.02);
    box-shadow:
      0 0 10px rgba(0, 255, 156, 0.4),
      0 0 20px rgba(0, 207, 255, 0.4);
  }
}
