/* ----------------------------------------------------
   TextToSpeechH AI Voice Platform - Enterprise SaaS Theme
------------------------------------------------------- */

:root {
  --bg-dark: #0b0d17;
  --panel-bg: rgba(22, 27, 46, 0.7);
  --panel-border: rgba(255, 255, 255, 0.08);
  --accent-cyan: #00f2fe;
  --accent-purple: #4facfe;
  --accent-pink: #ff0844;
  --text-main: #f0f4f8;
  --text-muted: #8e9bb0;
  --glass-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(circle at 15% 15%, rgba(0, 242, 254, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(79, 172, 254, 0.08) 0%, transparent 40%);
  color: var(--text-main);
  font-family: var(--font-family);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.hidden {
  display: none !important;
}

/* Top Utility Navigation Bar */
.top-utility-bar {
  width: 100%;
  max-width: 920px;
  margin-bottom: 10px;
  background: rgba(22, 27, 46, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 8px 18px;
}

.top-utility-nav ul {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  list-style: none;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .top-utility-nav ul {
    justify-content: center;
    gap: 12px;
  }
}

.top-utility-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 0.2s;
}

.top-utility-nav a:hover {
  color: var(--accent-cyan);
}

/* Header Top Bar */
.header-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.status-pill-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.status-pill {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.shortcut-trigger {
  cursor: pointer;
  transition: all 0.2s;
}

.shortcut-trigger:hover {
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
}

/* AdSense Banners */
.adsense-slot {
  width: 100%;
  max-width: 920px;
  margin: 15px 0;
}

.ad-placeholder {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  position: relative;
}

.ad-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--text-muted);
}

.ad-placeholder p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 5px;
}

/* App Container */
.app-container {
  width: 100%;
  max-width: 920px;
}

.app-header {
  margin-bottom: 25px;
}

.logo-badge h1 {
  font-size: 2.3rem;
  font-weight: 700;
  display: inline-block;
}

.accent-text {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-muted);
  margin-top: 8px;
  font-size: 0.95rem;
}

/* Glass Panel */
.glass-panel {
  background: var(--panel-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  padding: 30px;
}

/* Document Dropzone */
.dropzone {
  background: rgba(0, 0, 0, 0.2);
  border: 2px dashed rgba(0, 242, 254, 0.25);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  margin-bottom: 20px;
  transition: all 0.3s;
}

.dropzone.drag-over {
  background: rgba(0, 242, 254, 0.1);
  border-color: var(--accent-cyan);
}

.dropzone-icon {
  font-size: 1.5rem;
  margin-bottom: 5px;
  display: block;
}

.dropzone-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.file-label {
  color: var(--accent-cyan);
  cursor: pointer;
  text-decoration: underline;
  font-weight: 500;
}

/* Text Area */
.input-group {
  margin-bottom: 25px;
}

.label-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.textarea-wrapper {
  position: relative;
}

textarea {
  width: 100%;
  background: rgba(10, 13, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  padding: 15px 45px 15px 15px;
  resize: vertical;
  outline: none;
  transition: border-color 0.3s;
}

textarea:focus {
  border-color: var(--accent-cyan);
}

.clear-btn {
  position: absolute;
  right: 12px;
  top: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.clear-btn:hover {
  opacity: 1;
}

/* Controls Grid */
.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 25px;
}

.control-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px;
}

.control-card label,
.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

select,
input[type="range"] {
  width: 100%;
}

select {
  background: #111526;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text-main);
  padding: 10px;
  font-size: 0.9rem;
  outline: none;
}

.slider-val {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Progress Bar Section */
.progress-section {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 25px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.progress-status-text {
  color: var(--accent-cyan);
  font-weight: 500;
}

.progress-eta {
  color: var(--text-muted);
}

.progress-percentage {
  font-weight: 700;
  color: var(--accent-cyan);
}

.progress-bar-bg {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 5px;
  transition: width 0.4s ease;
}

/* Action Buttons */
.actions-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 25px;
}

button {
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 22px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #050b14;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.primary-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.secondary-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
}

.download-btn {
  background: rgba(79, 172, 254, 0.15);
  border: 1px solid rgba(79, 172, 254, 0.3);
  color: var(--accent-cyan);
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* Soundwave Visualizer */
.visualizer-container {
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.soundwave {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
}

.bar {
  width: 4px;
  height: 10%;
  background: var(--accent-cyan);
  border-radius: 2px;
  transition: height 0.2s;
}

.soundwave.active .bar {
  animation: soundwaveAnim 1.2s infinite ease-in-out alternate;
}

.soundwave.active .bar:nth-child(2) {
  animation-delay: 0.1s;
}

.soundwave.active .bar:nth-child(3) {
  animation-delay: 0.2s;
}

.soundwave.active .bar:nth-child(4) {
  animation-delay: 0.3s;
}

.soundwave.active .bar:nth-child(5) {
  animation-delay: 0.4s;
}

.soundwave.active .bar:nth-child(6) {
  animation-delay: 0.5s;
}

.soundwave.active .bar:nth-child(7) {
  animation-delay: 0.4s;
}

.soundwave.active .bar:nth-child(8) {
  animation-delay: 0.3s;
}

.soundwave.active .bar:nth-child(9) {
  animation-delay: 0.2s;
}

.soundwave.active .bar:nth-child(10) {
  animation-delay: 0.1s;
}

@keyframes soundwaveAnim {
  0% {
    height: 10%;
  }

  100% {
    height: 90%;
  }
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-card {
  width: 90%;
  max-width: 450px;
  padding: 25px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.close-modal-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
}

.shortcut-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shortcut-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

kbd {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 2px 8px;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.feature-card {
  padding: 22px;
  text-align: center;
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Production SaaS Multi-Column Footer */
.saas-footer {
  margin-top: 60px;
  background: var(--panel-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 40px 30px 25px 30px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr repeat(5, 1fr);
  gap: 30px;
  margin-bottom: 35px;
}

@media (max-width: 900px) {
  .footer-top-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-brand-col {
    grid-column: span 3;
  }
}

@media (max-width: 600px) {
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand-col {
    grid-column: span 2;
  }
}

.footer-brand-col h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 15px;
}

.footer-contact-info {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-contact-info a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links-list a:hover {
  color: var(--accent-cyan);
}

.badge-tag {
  font-size: 0.65rem;
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 5px;
}

.footer-disclaimer-box {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  margin-bottom: 20px;
  font-size: 0.78rem;
  color: #6b778d;
  line-height: 1.5;
  text-align: center;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Header & Footer Logo & Social Link Helpers */
.logo-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge-icon {
  width: 40px;
  height: 40px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-brand-icon {
  width: 32px;
  height: 32px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-links-anchor {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 500;
}

/* Cookie Consent Banner Styling */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 540px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 14px;
  padding: 16px 20px;
  color: #f8fafc;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
  flex: 1;
  min-width: 240px;
}

.cookie-banner-link {
  color: #38bdf8;
  text-decoration: underline;
}

.accept-cookies-btn {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}