/* =====================================
   TAMILAI VOICE AI FINAL
===================================== */
#voiceAiPopup {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  z-index: 999999;
}
/* MAIN CARD */
.voice-ai-popup {
  width: 650px;
  max-width: 92%;
  background: linear-gradient(
    145deg,
    rgba(4, 15, 35, 0.98),
    rgba(5, 30, 60, 0.98)
  );
  border: 1px solid rgba(0, 229, 255, 0.7);
  border-radius: 24px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 20px rgba(0, 229, 255, 0.4),
    0 0 50px rgba(0, 229, 255, 0.25),
    inset 0 0 20px rgba(0, 229, 255, 0.08);
}
/* ANIMATED GLOW */
.voice-ai-popup::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 24px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 229, 255, 0.6),
    transparent
  );
  animation: voiceGlow 4s linear infinite;
  z-index: -1;
}
@keyframes voiceGlow {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
/* TITLE */
.voice-ai-popup h2 {
  text-align: center;
  color: var(--primary);
  font-size: 32px;
  margin-bottom: 10px;
  text-shadow:
    0 0 10px var(--primary),
    0 0 20px var(--primary);
}
/* STATUS */
.voice-status {
  text-align: center;
  color: #9cefff;
  background: #09244d;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(0, 229, 255, 0.4);
}
/* OUTPUT */
#voiceOutput {
  width: 100%;
  height: 220px;
  resize: none;
  padding: 15px;
  border-radius: 18px;
  border: 1px solid rgba(0, 229, 255, 0.6);
  background: #09244d;
  color: var(--text-primary);
  outline: none;
  margin-top: 12px;
}
/* BUTTONS */
.voice-buttons {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.voice-buttons button {
  flex: 1;
  height: 50px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.3s;
}
/* START */
#startVoiceBtn {
  background: #00d9ff;
  color: #001827;
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.5);
}
#startVoiceBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 217, 255, 0.9);
}
/* STOP */
#stopVoiceBtn {
  background: #ff4b4b;
  color: var(--text-primary);
}
/* COPY */
#copyVoiceBtn {
  background: #00c853;
  color: var(--text-primary);
}
/* CLEAR */
#clearVoiceBtn {
  background: #ff9800;
  color: var(--text-primary);
}
/* CLOSE */
#closeVoiceBtn {
  background: #1b2f5f;
  color: var(--text-primary);
}
/* =====================================
   MOBILE
===================================== */
@media (max-width: 768px) {
  .voice-ai-popup {
    width: 88%;
    padding: 14px;
    border-radius: 18px;
  }
  .voice-ai-popup h2 {
    font-size: 16px;
  }
  .voice-status {
    font-size: 12px;
    padding: 10px;
  }
  #voiceOutput {
    height: 120px;
    font-size: 12px;
    padding: 10px;
  }
  .voice-buttons {
    gap: 6px;
  }
  .voice-buttons button {
    height: 36px;
    font-size: 11px;
  }
}
