/* ======= GERAL ======= */
body {
  font-family: "Poppins", sans-serif;
  background: #f2f2f2;
  margin: 0;
  padding: 0;
  color: #333;
}

.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
#tempoRestante {
  font-size: 9px;
  color: #666;
  margin-top: 5px;
  text-align: center;
}
h1 {
  text-align: center;
  color: #111;
  font-weight: 600;
  margin-bottom: 20px;
}

h2 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #222;
}

hr {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 30px 0;
}

/* ======= FORMULÁRIO ======= */
form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.card {
  background: #fafafa;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.card h2 {
  margin-top: 0;
  color: #000;
}

label {
  display: block;
  margin-top: 10px;
  font-weight: 500;
  color: #444;
}

input[type="file"],
select,
input[type="time"] {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
}

.time-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.current-file, .no-file {
  margin-top: 10px;
  font-size: 14px;
  color: #555;
}

audio {
  width: 100%;
  margin-top: 8px;
  border-radius: 8px;
}

/* ======= BOTÃO ======= */
.btn {
  background: linear-gradient(90deg, #000, #444);
  color: #fff;
  border: none;
  padding: 14px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: 0.3s;
}

.btn:hover {
  background: linear-gradient(90deg, #222, #000);
  transform: scale(1.02);
}

/* ======= POPUP ======= */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-overlay.active { 
  display: flex; 
}

.popup-content {
  position: relative;
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  animation: popupFade 0.4s ease;
}

@keyframes popupFade {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.popup-close {
  position: absolute;
  right: 10px;
  top: 10px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #333;
}

.popup-close:hover {
  color: #000;
}

.popup-content img {
  max-width: 100px;
  margin-bottom: 10px;
}

/* ======= BARRA DE PROGRESSO ======= */
.progress-container {
  width: 100%;
  height: 10px;
  background: #ddd;
  border-radius: 5px;
  margin: 12px 0;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #000, #555);
  transition: width 0.3s linear;
}

/* ======= TICKER ROLANTE ======= */
.ticker-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 30px;
  background: #000;
  color: #fff;
  border-radius: 5px;
  margin-top: 10px;
}

.ticker {
  position: absolute;
  white-space: nowrap;
  display: inline-block;
  animation: tickerMove 30s linear infinite;
  padding-left: 100%;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
}

.ticker:nth-child(2) {
  animation-delay: 15s;
}

@keyframes tickerMove {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ======= RESPONSIVIDADE ======= */
@media (max-width: 700px) {
  .container {
    margin: 20px;
    padding: 15px;
  }

  .card {
    padding: 15px;
  }

  .popup-content {
    max-width: 90%;
  }

  .ticker {
    font-size: 12px;
  }

  h1 {
    font-size: 22px;
  }
}
