/* ======================================
   TAMILAI CODE GENERATOR POPUP V1
====================================== */
#codeGeneratorPopup {
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  animation: fadeIn 0.3s ease;
}
#codeGeneratorPopup .summary-popup {
  width: 800px;
  max-width: 92%;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(
    145deg,
    rgba(3, 12, 35, 0.96),
    rgba(6, 18, 45, 0.96)
  );
  border: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow:
    0 0 30px rgba(0, 229, 255, 0.15),
    inset 0 0 20px rgba(0, 229, 255, 0.08);
  animation: popupGlow 3s infinite alternate;
}
/* TITLE */
#codeGeneratorPopup h2 {
  text-align: center;
  color: var(--primary);
  font-size: 28px;
  margin-bottom: 6px;
  text-shadow: 0 0 15px rgba(0, 229, 255, 0.8);
  animation: glowText 2.5s infinite alternate;
}
.code-subtitle {
  text-align: center;
  color: #89c7ff;
  font-size: 13px;
  margin-bottom: 18px;
  opacity: 0.85;
}
/* TEXTAREA */
#codeGeneratorInput {
  width: 100%;
  min-height: 220px;
  padding: 18px;
  border-radius: 18px;
  background: #132340;
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--text-primary);
  font-size: 15px;
  resize: none;
  outline: none;
  transition: 0.3s;
}
#codeGeneratorInput:focus {
  border-color: var(--primary);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.4);
  transform: translateY(-1px);
}
#codeGeneratorInput::placeholder {
  color: #7fa3c7;
}
/* BUTTON CONTAINER */
#codeGeneratorPopup .popup-buttons {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}
/* CANCEL BUTTON */
#codeGeneratorCancelBtn {
  flex: 1;
  height: 54px;
  border: none;
  border-radius: 14px;
  background: #1a2744;
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
#codeGeneratorCancelBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}
/* GENERATE BUTTON */
#codeGeneratorGenerateBtn {
  flex: 1;
  height: 54px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #00d4ff, #0099ff);
  color: var(--text-primary);
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.4);
}
#codeGeneratorGenerateBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.65);
}
/* LOADING STATE */
#codeGeneratorGenerateBtn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}
