/* Page shell */

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0f172a;
  background:
    radial-gradient(circle at top left, rgba(66, 133, 244, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(127, 86, 217, 0.18), transparent 55%),
    #050816;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* Hero */

.hero {
  text-align: center;
  margin-bottom: 28px;
  color: #e5e7eb;
}

.title {
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 6px;
}

.subtitle {
  margin: 0;
  font-size: 1rem;
  color: #9ca3af;
}

/* Cards */

.card {
  background: rgba(15, 23, 42, 0.97);
  border-radius: 18px;
  padding: 22px 22px 24px;
  margin-bottom: 20px;
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.7),
    0 0 0 1px rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(14px);
}

.card-title {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #f9fafb;
}

.hint-text {
  margin: 4px 0 12px;
  font-size: 0.9rem;
  color: #9ca3af;
}

/* Capture audio row */

.capture-audio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  margin-top: 10px;
}

.block {
  flex: 1 1 280px;
  min-width: 0;
}

.block-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 6px;
}

/* Inputs and buttons */

.file-input {
  display: block;
  width: 100%;
  margin: 6px 0 10px;
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #4b5563;
  background: #020617;
  color: #e5e7eb;
}

.file-input::file-selector-button {
  padding: 6px 10px;
  border-radius: 8px;
  border: none;
  background: #111827;
  color: #e5e7eb;
  margin-right: 8px;
  cursor: pointer;
  font-size: 0.8rem;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 999px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.primary-btn {
  background: linear-gradient(120deg, #4285f4, #7f56d9);
  color: #f9fafb;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.8);
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.85);
}

.primary-btn:disabled,
.secondary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.secondary-btn {
  background: rgba(15, 23, 42, 1);
  color: #e5e7eb;
  border: 1px solid #4b5563;
}

.secondary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.7);
}

.generate-btn {
  margin-top: 14px;
}

/* Status text */

.status {
  min-height: 18px;
  color: #9ca3af;
  margin-top: 10px;
  font-size: 0.9rem;
}

.status.small {
  min-height: 16px;
  font-size: 0.8rem;
}

/* Output blocks */

.output-block {
  margin-top: 16px;
}

.output-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}

.output-block.half {
  flex: 1 1 260px;
}

label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: #e5e7eb;
}

textarea {
  width: 100%;
  min-height: 90px;
  font-family: Consolas, ui-monospace, monospace;
  padding: 9px 10px;
  background: #020617;
  border: 1px solid #4b5563;
  border-radius: 10px;
  resize: vertical;
  color: #e5e7eb;
}

/* Code blocks */

.code-block {
  background: #020617;
  border: 1px solid #4b5563;
  padding: 10px;
  border-radius: 10px;
  font-family: Consolas, ui-monospace, monospace;
  overflow-x: auto;
  font-size: 0.85rem;
  color: #e5e7eb;
}

/* Use case buttons */

.usecase-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 8px;
}

.pill-btn {
  border-radius: 999px;
  padding: 7px 14px;
  border: 1px solid #4b5563;
  background: #020617;
  color: #e5e7eb;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, transform 0.12s ease;
}

.pill-btn:hover {
  transform: translateY(-1px);
  border-color: #818cf8;
}

.pill-btn.active {
  background: rgba(129, 140, 248, 0.14);
  border-color: #818cf8;
  color: #e0e7ff;
}

/* Formatted output pretty view */

.formatted-output-pretty {
  background: #020617;
  border: 1px solid #4b5563;
  border-radius: 10px;
  padding: 16px;
  color: #e5e7eb;
  line-height: 1.6;
  min-height: 100px;
}

.formatted-output-pretty h4 {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #f9fafb;
}

.formatted-output-pretty h5 {
  margin: 16px 0 8px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #d1d5db;
}

.formatted-output-pretty ul {
  margin: 8px 0;
  padding-left: 24px;
}

.formatted-output-pretty li {
  margin: 4px 0;
  color: #e5e7eb;
}

.formatted-output-pretty p {
  margin: 8px 0;
  color: #e5e7eb;
}

.json-details {
  margin-top: 12px;
}

.json-details summary {
  cursor: pointer;
  color: #9ca3af;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.json-details summary:hover {
  color: #d1d5db;
}

/* SRT Preview */
.srt-preview {
  background: #020617;
  border: 1px solid #4b5563;
  border-radius: 10px;
  padding: 16px;
  font-family: Consolas, ui-monospace, monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #e5e7eb;
  white-space: pre-wrap;
  overflow-x: auto;
  max-height: 600px;
  overflow-y: auto;
}

/* Responsive */

@media (max-width: 900px) {
  .capture-audio-row {
    flex-direction: column;
    align-items: stretch;
  }

  .capture-audio-row > .block {
    width: 100%;
    flex: 1 1 auto;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 28px 16px 40px;
  }

  .card {
    padding: 18px 16px 20px;
  }

  .title {
    font-size: 2rem;
  }
}




