html, body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  letter-spacing: -0.01em;
  color: #f8fafc; /* or your preferred default */
}


:root {
  --bg: #020617;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --border: rgba(15, 23, 42, .05);
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --radius: 16px;
  --accent: rgba(37, 99, 235, .35);
}

:root[data-theme="dark"],
html[data-theme="dark"],
body[data-theme="dark"] {
  --bg: #ffffff;
  --surface: #0f172a;
  --surface-soft: rgba(15, 23, 42, .4);
  --border: rgba(148, 163, 184, 0.12);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --primary: #3b82f6;
  --accent: rgba(59, 130, 246, .35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14.5px;
  color: var(--text);
  min-height: 100vh;     /* 👈 was height: 100vh */
  width: 100vw;
  overflow-x: hidden;    /* 👈 keep x hidden, allow y to scroll */
  /* overflow-y: auto;   // optional */
}


.hidden {
  display: none !important;
}

/* =======================
   LANDING SCREEN
   ======================= */

.landing-screen {
  height: 100vh;
  width: 100vw;
  position: relative;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.23), rgba(2, 6, 23, 0) 55%),
    radial-gradient(circle at 80% 10%, rgba(168, 85, 247, 0.18), rgba(2, 6, 23, 0) 58%),
    linear-gradient(160deg, #020617 0%, #0a1024 40%, #040816 90%);
  overflow: hidden;
  animation: fadeIn 0.4s ease-out;
}

.landing-screen::before,
.landing-screen::after {
  content: "";
  position: absolute;
  inset: -180px -90px auto;
  height: 280px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.16), rgba(2, 6, 23, 0));
  filter: blur(18px);
  pointer-events: none;
  z-index: 1;
}

.landing-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px 0;
  z-index: 5;
}

.landing-left {
  display: flex;
  gap: 10px;
  align-items: center;
}

.landing-logo {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 0 4px rgba(15, 23, 42, .35));
}

.landing-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.landing-app-name {
  color: #fff;
  font-weight: 600;
  letter-spacing: -.01em;
}

.landing-app-sub {
  color: rgba(226, 232, 240, .5);
  font-size: 0.68rem;
}

.landing-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.landing-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  position: relative;
  z-index: 3;
  padding: 0 20px;
}

.landing-title {
  font-size: 4.2rem;
  font-weight: 900;
  color: #fff;
  margin: 0;
  letter-spacing: -.02em;
  animation: slideUp 0.45s ease-out;
}



.landing-title2 {
  font-size: 2.3rem;
  font-weight: 700;
  color: #23c20e;
  margin: 0;
  letter-spacing: -.02em;
  animation: slideUp 0.45s ease-out;
}

.landing-pill {
  background: rgba(248, 250, 252, .12);
  border: 1px solid rgba(248, 250, 252, 0.08);
  padding: 5px 16px 5px;
  border-radius: 9999px;
  font-size: 0.7rem;
  color: #e2e8f0;
}

.landing-pill.small {
  font-size: 0.65rem;
  padding: 4px 14px 4px;
}

/* glass upload card */
.landing-upload {
  margin-top: 22px;
  background: radial-gradient(circle, rgba(15, 23, 42, .15), rgba(15, 23, 42, 0)), rgba(248, 250, 252, .03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(248,250,252,.12);
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 26px 36px;
  min-width: 520px;
  max-width: 650px;
  cursor: pointer;
  box-shadow: 0 26px 70px rgba(15,23,42,.45);
  font-size: 1.25rem;
  transition: 0.15s ease-out;
}



.landing-upload input { display: none; }

.landing-upload:hover {
  border-color: rgba(255,255,255,.18);
  transform: translateY(-1px);
}

.landing-upload-left {
  display: flex;
  gap: 12px;
  align-items: center;
}

.landing-upload-icon {
  font-size: 1.6rem;
  background: rgba(248,250,252,.08);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
}

.pulse {
  animation: pulse 2.2s ease-in-out infinite;
}

.landing-upload-main {
  color: #fff;
  font-weight: 700;
  font-size: 1.6rem;
}

.landing-upload-sub {
  font-size: 3rem;
  color: rgba(231, 240, 226, 0.6);
}

.landing-upload-right {
  font-size: 0.58rem;
  color: rgba(226, 232, 240, .5);
}

.landing-hint-small {
  font-size: 1rem;
  color: rgb(255, 255, 255);
}

.landing-upload.is-dragover {
  border-color: rgba(59, 130, 246, .6);
  background: rgba(140, 59, 246, 0.19);
  box-shadow: 0 0 20px rgba(59,130,246,.4);
}

.landing-hint {
  color: rgba(226, 232, 240, 0.65);
}

.landing-foot-badges {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.foot-badge {
  background: rgba(248, 250, 252, .03);
  border: 1px solid rgba(248, 250, 252, .02);
  border-radius: 9999px;
  padding: 4px 12px 4px;
  font-size: 0.62rem;
  color: rgba(226, 232, 240, .6);
}

/* ====== FLOATING CODES ====== */
.landing-floating-codes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.float-code {
  position: absolute;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.22);
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.25),
               0 0 20px rgba(59, 130, 246, 0.1);
  animation: floatDrift 8s ease-in-out infinite;
  will-change: transform, opacity;
}

[data-theme="light"] .float-code {
  color: rgba(15, 23, 42, 0.16);
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.12),
               0 0 18px rgba(37, 99, 235, 0.05);
}

/* spread them across screen */
.fc1  { top: 12%; left: 6%;  animation-delay: 0s; }
.fc2  { top: 20%; left: 24%; animation-delay: .3s; }
.fc3  { top: 30%; left: 8%;  animation-delay: .6s; }
.fc4  { top: 40%; left: 18%; animation-delay: .9s; }
.fc5  { top: 55%; left: 4%;  animation-delay: 1.1s; }
.fc6  { top: 65%; left: 12%; animation-delay: 1.4s; }
.fc7  { top: 10%; right: 10%; animation-delay: .2s; }
.fc8  { top: 24%; right: 20%; animation-delay: .5s; }
.fc9  { top: 38%; right: 6%;  animation-delay: .8s; }
.fc10 { top: 52%; right: 14%; animation-delay: 1s; }
.fc11 { top: 62%; right: 26%; animation-delay: 1.3s; }
.fc12 { top: 72%; right: 8%;  animation-delay: 1.5s; }
.fc13 { top: 15%; left: 45%; animation-delay: .4s; }
.fc14 { top: 32%; left: 52%; animation-delay: .7s; }
.fc15 { top: 50%; left: 48%; animation-delay: 1s; }
.fc16 { top: 68%; left: 55%; animation-delay: 1.3s; }
.fc17 { top: 80%; left: 32%; animation-delay: 1.6s; }
.fc18 { top: 85%; right: 32%; animation-delay: 1.9s; }

/* Improved motion */
@keyframes floatDrift {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0.40;
  }
  25% {
    transform: translate(25px, -20px) rotate(4deg);
    opacity: 0.40;
  }
  50% {
    transform: translate(-20px, -40px) rotate(-3deg);
    opacity: 0.40;
  }
  75% {
    transform: translate(20px, -60px) rotate(5deg);
    opacity: 0.40;
  }
  100% {
    transform: translate(-10px, -80px) rotate(-4deg);
    opacity: 0.40;
  }
}



/* =======================
   WORKSPACE
   ======================= */

/* Make the workspace header clickable */
.workspace-header {
  cursor: pointer;                  /* changes to hand cursor on hover */
  transition: opacity 0.25s ease;   /* smooth hover effect */
}

/* Optional visual feedback (fade slightly on hover) */
.workspace-header:hover {
  opacity: 0.85;
}


.workspace {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.app-shell {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid rgba(15, 23, 42, .04);
  padding: 12px 20px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.logo-inline {
  display: flex;
  gap: 10px;
  align-items: center;
}

.top-logo {
  width: 105px;
  height: auto;
}

.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.app-title {
  margin: 0;
  font-size: 1.02rem;
}

.app-sub {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.badge {
  background: rgba(37, 99, 235, .12);
  color: #1d4ed8;
  padding: 4px 11px 4px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 500;
}
[data-theme="dark"] .badge {
  background: rgba(59, 130, 246, 0.14);
  color: #bfdbfe;
}

.theme-toggle {
  background: rgba(248, 250, 252, .06);
  border: 1px solid rgba(15, 23, 42, .01);
  width: 35px;
  height: 26px;
  border-radius: 9999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}
[data-theme="dark"] .theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: none; }

/* main workspace layout */
.main-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 20px 12px;
  height: calc(100vh - 48px - 34px);
  min-height: 0;
}

.main-shell.workspace-refresh {
  background: #e2e8f0;
}
[data-theme="dark"] .main-shell.workspace-refresh {
  background: #020617;
}

.app-body--split {
  height: 100%;
  display: grid;
  grid-template-columns: 0.65fr 0.35fr;
  gap: 20px;
  min-height: 0;
}

.work-left,
.work-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px 14px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}
[data-theme="dark"] .card {
  background: #0f172a;
  border-color: rgba(148, 163, 184, 0.08);
  box-shadow: 0 1px 10px rgba(0,0,0,0.2);
}

/* left main block */
.card-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.muted {
  color: var(--muted);
}
.small {
  font-size: 0.7rem;
}

/* === locale preset buttons (prominent) === */
.lang-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

#langSelectAll,
#langSelectCore,
#langSelectNone {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.08);
}

/* All locales = primary */
#langSelectAll {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
}
#langSelectAll:hover {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  transform: translateY(-1px);
}

/* Core = secondary neutral */
#langSelectCore {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
#langSelectCore:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

/* Clear = red */
#langSelectNone {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.4);
}
#langSelectNone:hover {
  background: #fecaca;
  transform: translateY(-1px);
}

/* dark mode for preset buttons */
[data-theme="dark"] #langSelectAll {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
}
[data-theme="dark"] #langSelectCore {
  background: rgba(148, 163, 184, 0.15);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.2);
}
[data-theme="dark"] #langSelectNone {
  background: rgba(239, 68, 68, 0.15);
  color: #fecaca;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* === locale grid === */
.lang-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.lang-card {
  position: relative;
  border: 1px solid rgba(15, 23, 42, .04);
  border-radius: 16px;
  padding: 14px 14px 10px;
  background: #fff;
  cursor: pointer;
  transition: 0.15s ease-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 180px;
}
[data-theme="dark"] .lang-card {
  background: rgba(15, 23, 42, 0.3);
  border-color: rgba(148, 163, 184, 0.08);
}

.lang-card.active {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.lang-card.active::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.7rem;
  background: rgba(37, 99, 235, 1);
  color: #fff;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.lang-card.inactive {
  opacity: 0.45;
  background: #f1f5f9;
  filter: grayscale(0.3);
}

.lang-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.lang-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
}
[data-theme="dark"] .lang-name {
  color: #e2e8f0;
}

.lang-meta {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.25;
}
[data-theme="dark"] .lang-meta {
  color: rgba(226, 232, 240, 0.6);
}

/* flags — show full rectangle image */
.lang-flag {
  width: 100%;
  height: 85px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  margin-top: 6px;
}
.lang-flag img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  display: block;
}

/* ====== RIGHT COLUMN ====== */

.log-terminal {
  height: 240px;
  background: #0f172a;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.7rem;
  border-radius: 12px;
  padding: 8px 10px 10px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
[data-theme="light"] .log-terminal {
  background: #0f172a;
  color: #e2e8f0;
}

/* metrics row */
.metric-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.metric {
  background: rgba(248, 250, 252, .6);
  border: 1px solid rgba(15, 23, 42, .03);
  border-radius: 12px;
  padding: 6px 8px 6px;
  flex: 1 1 0;
}
[data-theme="dark"] .metric {
  background: rgba(15, 23, 42, 0.35);
}

.metric-label {
  font-size: 0.62rem;
  color: rgba(15, 23, 42, .6);
  margin: 0 0 3px;
}
[data-theme="dark"] .metric-label {
  color: rgba(226, 232, 240, .6);
}

.metric-value {
  font-size: 1rem;
  font-weight: 700;
}

/* recent exports */
.exports-panel {
  margin-top: 8px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, .02);
  border-radius: 12px;
  padding: 8px 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
[data-theme="dark"] .exports-panel {
  background: rgba(15, 23, 42, 0.25);
}

.exports-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exports-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 125px;
  overflow-y: auto;
}

.exports-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .03);
  border-radius: 10px;
  padding: 4px 6px 4px 8px;
  font-size: 0.68rem;
}
[data-theme="dark"] .exports-list li {
  background: rgba(15, 23, 42, 0.3);
  border-color: rgba(148, 163, 184, 0.05);
}

/* footer */
.footer {
  background: var(--surface);
  border-top: 1px solid rgba(15, 23, 42, .04);
  padding: 6px 20px 10px;
  font-size: 0.65rem;
  color: #94a3b8;
}

/* back btn */
.back-link {
  background: rgba(148, 163, 184, .1);
  border: 1px solid rgba(148, 163, 184, .15);
  border-radius: 9999px;
  padding: 3px 12px 4px;
  font-size: 0.64rem;
  cursor: pointer;
}

/* transitions / animations */
.landing-enter {
  opacity: 0;
  animation: fadeIn 0.35s ease-out forwards;
}

.workspace-enter {
  opacity: 0;
  animation: fadeIn 0.25s ease-out forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(59, 130, 246, .2); }
  50%      { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); }
}

/* responsive */
@media (max-width: 1080px) {
  .app-body--split { grid-template-columns: 1fr; }
  .work-right { order: -1; }
  .landing-content { padding: 0 14px; }
  #progress { width: 90%; }
}

/* =========================================================
   CTA AREA (TRANSLATE + DOWNLOAD) — CLEAN + CENTERED
   ========================================================= */

/* 1. wrapper inside the card */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

/* 2. shared button base */
#translateBtn,
#downloadLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 30px;
  min-height: 46px;
  border: 1px solid transparent;
  margin: 0 auto;       /* 👈 THIS is what actually centers them */
  width: auto;          /* natural width */
}

/* 3. translate (blue) */
#translateBtn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
  cursor: pointer;
  width: 80%;           /* if you want it longer than download */
  max-width: 460px;
}

#translateBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

/* 4. download (green) */
#downloadLink {

  background: linear-gradient(135deg, #000000 0%, #000000 100%);
  background-size: 200% 200%;
  color: #ffffff;
  cursor: pointer;
  width: 80%;
  max-width: 460px;
  animation: ctaGradient 3s ease infinite, ctaPulse 1.5s ease-in-out infinite;
}



/* 5. progress bar centered under both */
#progress {
  width: 65%;
  max-width: 360px;
  height: 12px;
  margin: 12px auto 0;
  display: none;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}
#progress::-webkit-progress-bar {
  background: rgba(148, 163, 184, 0.18);
  border-radius: 9999px;
}
#progress::-webkit-progress-value {
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
  border-radius: 9999px;
}
#progress::-moz-progress-bar {
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
  border-radius: 9999px;
}

/* === FINAL CENTER FIX FOR CTA CARD === */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

/* Ensure both buttons stay centered */
.hero-actions #translateBtn,
.hero-actions #downloadLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: auto;
}

/* Center the hero-actions block inside ANY parent card */
.card:has(.hero-actions) {
  display: flex;
  flex-direction: column;
  align-items: center !important;
  justify-content: center !important;
}

/* Make sure the card’s own padding doesn’t push content left */
.card {
  text-align: center;
}
/* === Match Download Button Width to Translate Button === */
.hero-actions #translateBtn,
.hero-actions #downloadLink {
  width: 80%;
  max-width: 560px;
}

.hero-actions #downloadLink {
  color: #000;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.35);
}

.hero-actions #downloadLink:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
/* ===== Clean, Centered NWS Yellow Header ===== */
.topbar.nws-header {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 0 16px; /* ↓ smaller top/bottom padding */
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.nws-header-logo {
  width: 180px;
  height: auto;
  margin-bottom: 0.5px; /* ↓ reduced from 8px */
}

.nws-header-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0; /* ↓ smaller gap to version */
  letter-spacing: -0.01em;
}

.nws-version-badge {
  background: rgba(0, 0, 0, 0.12);
  color: #0f172a;
  padding: 2px 9px 0.5px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
}
/* tighten yellow header spacing */
.topbar.nws-header {
  gap: 0 !important;        /* ← this removes the 14px gap from the base .topbar */
  padding: 14px 0 16px;
}

/* tighten logo → title */
.topbar.nws-header .top-logo,
.topbar.nws-header .nws-header-logo {
  margin-bottom: 2px !important;
}

/* tighten title → version */
.topbar.nws-header .nws-header-title {
  margin: 0 0 3px !important;
}
/* Force-hide the recent exports card */
.card-exports,
.card-history,
#exportCard,
#export-history {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* Make the log text larger and clearer */
#log {
  background: #0a0a0a;
  color: #ffffff;
  font-family: "Courier New", monospace;
  font-size: 13px;
  line-height: 1.4em;
  padding: 10px;
  border-radius: 8px;
  height: 240px;
  overflow-y: auto;
  white-space: pre-wrap;
  position: relative;
  text-align: left;    /* 👈 add this line */
}


/* make sure each log line has height */
#log .log-line {
  line-height: 1.25rem;
  position: relative;
}

/* the cursor itself */
#log .cursor {
  display: inline-block;
  width: 4px;                 /* 👈 thickness */
  height: 1em;                /* matches text height */
  background: #ffffff;        /* bright green */
  margin-left: 4px;
  animation: blink 1s steps(1) infinite;
  vertical-align: -0.1em;     /* tiny nudge to align with text */
}

@keyframes blink {
  50% { opacity: 0; }
}



#workspace header {
  border-bottom: none !important;
  box-shadow: none !important;
}

/* ====== Terminal-style log (local, scoped) ====== */

/* style ONLY the log card on the right */
.card.card-log {
  background: #0f172a; /* dark navy */
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  padding: 0;               /* we'll handle padding inside */
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.28);
}

/* turn the existing <h3> into a terminal header */
.card.card-log .card-title.small {
  margin: 0;
  padding: 8px 12px 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.35);
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(248, 250, 252, 0.7);
  letter-spacing: 0.01em;
}

/* fake mac dots */
.card.card-log .card-title.small::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 9999px;
  box-shadow:
    14px 0 0 #f97316,
    28px 0 0 #22c55e;
  margin-right: 4px;
}

/* the actual log body */
.card.card-log #log {
  background: #020617;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.72rem;
  line-height: 1.18rem;
  padding: 6px 12px 10px;
  max-height: 215px;
  overflow-y: auto;
  white-space: pre-wrap;
  text-align: left;        /* you asked for left align earlier */
  border-radius: 0 0 14px 14px;
}

/* each line */
.card.card-log #log .log-line {
  line-height: 1.25rem;
  position: relative;
}

/* single thin green cursor */
.card.card-log #log .cursor {
  display: inline-block;
  width: 2px;               /* thickness */
  height: 1.05em;
  background: #22c55e;      /* bright green */
  margin-left: 4px;
  animation: log-blink 1s steps(1) infinite;
  vertical-align: -0.05em;
}

@keyframes log-blink {
  50% { opacity: 0; }
}
/* === Force vertical gap inside the CTA panel === */
.cta-panel {
  display: flex !important;
  flex-direction: column !important;
}

#translateBtn,
#progress,
#downloadLink {
  margin: 0 !important;
}

/* give a clear 12px space below the Translate button */
#translateBtn {
  margin-bottom: 12px !important;
}

/* optional: smaller space above the Download button */
#downloadLink {
  margin-top: 8px !important;
}
/* make translate/download card transparent */
.cta-panel {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
/* make the translate/download card transparent */
.card.card-action {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;     /* keep if you want buttons snug */
}
/* center progress bar inside CTA panel */
/* match progress bar width to translate/download buttons */
#progress {
  display: block;
  margin: 0 auto;
  width: 80%;          /* 👈 same as button */
  max-width: 360px;    /* 👈 same as button */
  border-radius: 999px;
}
/* fully center the progress bar */
.cta-panel {
  display: flex;
  flex-direction: column;
  align-items: center; /* ✅ this will center all children horizontally */
}

#progress {
  display: block;
  width: 80%;
  max-width: 360px;
  border-radius: 999px;
  margin: 0 auto;       /* backup centering for browsers that ignore flex */
}
/* your CTA card – we already made it transparent */
.card.card-action {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;     /* 👈 center all children horizontally */
}

/* make all three elements the same width */
.card.card-action #translateBtn,
.card.card-action #downloadLink,
.card.card-action #progress {
  width: 80%;
  max-width: 360px;
}

/* 👇 extra insurance: even inside flex, center THIS one */
.card.card-action #progress {
  margin-left: auto;
  margin-right: auto;
  align-self: center;
}



