*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:          #0a0a0a;
  --bg-card:     #111111;
  --bg-elevated: #1a1a1a;
  --border:      #222222;
  --border-mid:  #2e2e2e;
  --text:        #e8e8e8;
  --text-muted:  #555555;
  --text-dim:    #888888;
  --red:         #e53935;
  --red-glow:    rgba(229, 57, 53, 0.25);
  --red-dim:     rgba(229, 57, 53, 0.08);
  --green:       #4ade80;
  --green-dark:  #166534;
  --green-bg:    #0d2318;
}

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 20px 64px;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

/* ── Header ──────────────────────────────────────── */
header {
  text-align: center;
}

header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #fff;
}

.subtitle {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ── Company inputs ──────────────────────────────── */
.company-inputs {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.company-input-row {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.company-input-row input {
  width: 100%;
  padding: 10px 14px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  color: #f0f0f0;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.company-input-row input::placeholder {
  color: #555;
}

.company-input-row input:focus {
  border-color: #e53935;
}

.input-error {
  font-size: 0.78rem;
  color: var(--red);
  display: none;
}

.input-error.visible {
  display: block;
}

.input-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.optional-label {
  opacity: 1;
  font-weight: 600;
  font-size: medium;
}

/* ── Error dialog ────────────────────────────────── */
#errorDialog {
  background: var(--bg-elevated);
  border: 1px solid var(--border-mid);
  border-radius: 12px;
  padding: 28px 32px;
  color: var(--text);
  max-width: 320px;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  margin: auto;
}

#errorDialog[open] {
  display: flex;
}

#errorDialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
}

#errorDialog p {
  font-size: 0.9rem;
  color: var(--text);
  text-align: center;
  line-height: 1.5;
}

#errorDialogClose {
  padding: 9px 28px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

#errorDialogClose:hover {
  opacity: 0.85;
}

/* ── Recorder ────────────────────────────────────── */
.recorder-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.waves-container {
  position: relative;
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ripple rings */
.wave {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--red);
  opacity: 0;
  pointer-events: none;
}

.waves-container.recording .wave-1 { animation: ripple 2.1s 0.0s infinite ease-out; }
.waves-container.recording .wave-2 { animation: ripple 2.1s 0.7s infinite ease-out; }
.waves-container.recording .wave-3 { animation: ripple 2.1s 1.4s infinite ease-out; }

@keyframes ripple {
  0%   { transform: scale(0.65); opacity: 0.7; }
  100% { transform: scale(1.9);  opacity: 0;   }
}

/* Button */
.record-btn {
  position: relative;
  z-index: 2;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid var(--border-mid);
  background: var(--bg-elevated);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  outline: none;
}

.record-btn:hover {
  border-color: var(--red);
  box-shadow: 0 0 36px var(--red-glow);
}

.record-btn:focus-visible {
  box-shadow: 0 0 0 3px var(--red-glow);
}

/* Inner icon — circle → rounded square on recording */
.record-icon {
  width: 34px;
  height: 34px;
  background: var(--red);
  border-radius: 50%;
  transition: border-radius 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.3s, height 0.3s;
}

.waves-container.recording .record-btn {
  border-color: var(--red);
  background: #160a0a;
  box-shadow: 0 0 48px var(--red-glow), inset 0 0 24px var(--red-dim);
}

.waves-container.recording .record-icon {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  animation: icon-pulse 1.2s ease-in-out infinite alternate;
}

@keyframes icon-pulse {
  from { opacity: 0.75; transform: scale(0.93); }
  to   { opacity: 1;    transform: scale(1.07); }
}

/* Status & Timer */
.status {
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: 0.2px;
  min-height: 1.2em;
  transition: color 0.2s;
}

.status.active {
  color: var(--red);
}

.timer {
  font-size: 2.5rem;
  font-weight: 300;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 4px;
}

/* ── Waveform canvas ─────────────────────────────── */
.visualizer-section {
  width: 100%;
}

#waveformCanvas {
  display: block;
  width: 100%;
  height: 110px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.channel-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s;
}

.channel-labels.visible {
  opacity: 1;
}

/* ── Info box ────────────────────────────────────── */
.info-box {
  width: 100%;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #120f00;
  border: 1px solid #2c2300;
  border-radius: 10px;
  padding: 14px 18px;
}

.info-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #6b5700;
  color: #a88a00;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.info-box p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #9a8040;
}

.info-box p strong {
  color: #c9aa55;
}

/* ── Download ────────────────────────────────────── */
.download-section {
  width: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: fade-up 0.35s ease;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.recording-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 32px;
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid var(--green-dark);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  outline: none;
}

.download-btn:hover {
  background: #0f2e1e;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(74, 222, 128, 0.15);
}

.download-btn:active {
  transform: translateY(0);
}

.download-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
}

/* ── Navigation shell ────────────────────────────── */

/* Desktop: sidebar + main content side by side */
@media (min-width: 769px) {
  body {
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    height: 100vh;
    overflow: hidden;
  }

  .app-main {
    flex: 1;
    overflow-y: auto;
    padding: 48px 20px 64px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .sidebar {
    position: static;
    transform: none !important;
    height: 100vh;
  }
}

/* Mobile: normal body flow, sidebar is an overlay */
@media (max-width: 768px) {
  .app-main {
    width: 100%;
  }

  /* Push content down to clear the hamburger button */
  .container {
    padding-top: 64px;
  }
}

/* ── Sidebar ─────────────────────────────────────── */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 28px 0 24px;
  /* Mobile: fixed overlay, off-screen by default */
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 200;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-logo {
  padding: 0 20px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

.sidebar-nav {
  list-style: none;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.nav-link:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.nav-link.active {
  background: var(--bg-elevated);
  color: #fff;
}

.nav-link svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.nav-link.active svg {
  opacity: 1;
  color: var(--red);
}

/* ── Sidebar overlay (mobile backdrop) ───────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 199;
  opacity: 0;
  transition: opacity 0.28s;
}

.sidebar-overlay.visible {
  display: block;
  opacity: 1;
}

/* ── Hamburger button ────────────────────────────── */
.hamburger-btn {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 300;
  width: 40px;
  height: 40px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  outline: none;
  transition: border-color 0.15s;
}

.hamburger-btn:hover {
  border-color: var(--border-mid);
}

@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }
}

.hamburger-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.hamburger-btn.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Page switching ──────────────────────────────── */
.page-hidden {
  display: none !important;
}

/* ── History page ────────────────────────────────── */
.history-page {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  animation: fade-up 0.3s ease;
}

.page-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

.history-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-group-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.recording-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.15s;
}

.recording-card:hover {
  border-color: var(--border-mid);
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.card-company {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-time {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.card-play {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-mid);
  border-radius: 6px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.card-play:hover {
  color: var(--green);
  border-color: var(--green-dark);
}

.history-state {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 48px 0;
}

/* ── Card chevron ────────────────────────────────────── */
.card-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: color 0.15s, transform 0.15s;
}

.recording-card:hover .card-chevron {
  color: var(--text-dim);
  transform: translateX(2px);
}

/* ── Meeting page ────────────────────────────────────── */
.meeting-page {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: fade-up 0.3s ease;
}

.meeting-back {
  margin-bottom: -8px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.15s;
}

.back-link:hover {
  color: var(--text);
}

.meeting-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meeting-company {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

.meeting-date {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ── Player card ─────────────────────────────────────── */
.player-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Seek row */
.seek-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.seek-time {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  min-width: 34px;
}

.seek-time:last-child {
  text-align: right;
}

.seek-track {
  position: relative;
  flex: 1;
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 4px;
}

.seek-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--red);
  border-radius: 4px;
  pointer-events: none;
  width: 0%;
  transition: width 0.1s linear;
}

.seek-range {
  position: absolute;
  inset: -8px 0;
  width: 100%;
  height: calc(100% + 16px);
  opacity: 0;
  cursor: pointer;
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

/* Controls row */
.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.ctrl-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  position: relative;
  transition: color 0.15s, background 0.15s;
  outline: none;
  flex-shrink: 0;
}

.ctrl-btn:hover {
  color: var(--text);
  background: var(--bg-elevated);
}

.ctrl-btn:focus-visible {
  box-shadow: 0 0 0 2px var(--red-glow);
}

/* The "10" label on skip buttons */
.ctrl-label {
  position: absolute;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  bottom: 8px;
  color: inherit;
}

/* Play / pause button is larger */
.play-btn {
  width: 60px;
  height: 60px;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.play-btn:hover {
  background: #f44336;
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 20px var(--red-glow);
}

.play-btn:active {
  transform: scale(0.97);
}

/* Speed row */
.speed-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.speed-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  flex-shrink: 0;
}

.speed-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.speed-btn {
  padding: 5px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  outline: none;
}

.speed-btn:hover {
  color: var(--text);
  border-color: var(--border-mid);
}

.speed-btn.active {
  background: var(--red-dim);
  border-color: var(--red);
  color: var(--red);
}

.player-error {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 32px 0;
}

/* ── Transcription ───────────────────────────────────── */
.transcription-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.summary-trigger-btn[hidden] {
  display: none;
}

.summary-trigger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: #fff;
  color: #0a0a0a;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.2px;
  transition: background 0.15s, transform 0.1s, box-shadow 0.2s;
  outline: none;
}

.summary-trigger-btn:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1);
}

.summary-trigger-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.summary-trigger-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.transcription-status:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 0.875rem;
}

.transcription-spinner {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border: 2px solid var(--border-mid);
  border-top-color: var(--text-dim);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.transcription-result {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.transcription-result-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 18px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

.transcription-result-toggle[aria-expanded="true"] {
  border-bottom: 1px solid var(--border);
}

.transcription-result-toggle:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.transcription-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.transcription-result-toggle[aria-expanded="true"] .transcription-chevron {
  transform: rotate(180deg);
}

.transcription-result-body {
  padding: 16px 18px;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text);
  white-space: pre-wrap;
}

.transcription-error:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  font-size: 0.875rem;
  color: var(--red);
}

.transcription-retry-btn {
  flex-shrink: 0;
  padding: 5px 14px;
  background: none;
  border: 1px solid var(--red);
  border-radius: 6px;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  outline: none;
}

.transcription-retry-btn:hover {
  background: var(--red-dim);
}

/* ── AI Summary ──────────────────────────────────────── */
.ai-summary-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-summary-section[hidden] {
  display: none;
}

.ai-summary-list {
  list-style: none;
  white-space: normal;
}

.ai-summary-list li {
  padding-left: 14px;
  position: relative;
}

.ai-summary-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* ── Upload page ─────────────────────────────────────── */
.upload-page {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: fade-up 0.3s ease;
}

.page-subtitle {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-top: 6px;
}

/* Date input matches text/url inputs */
#uploadMeetingDate {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  color-scheme: dark;
}

#uploadMeetingDate:focus {
  border-color: var(--border-mid);
}

/* Upload drop zone */
.upload-zone {
  border: 1.5px dashed var(--border-mid);
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--red);
  background: var(--red-dim);
}

.upload-zone.file-selected {
  border-color: #4caf50;
  border-style: solid;
}

.upload-zone-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 0.875rem;
}

.upload-zone-label svg {
  color: var(--text-muted);
  transition: color 0.15s;
}

.upload-zone:hover .upload-zone-label svg,
.upload-zone.drag-over .upload-zone-label svg {
  color: var(--red);
}

.upload-zone.file-selected .upload-zone-label svg {
  color: #4caf50;
}

.upload-zone.file-selected .upload-zone-label {
  color: var(--text);
}

/* Status text */
.upload-status {
  font-size: 0.875rem;
  color: var(--text-muted);
  min-height: 1.2em;
  text-align: center;
}

.upload-status.error {
  color: var(--red);
}

.upload-status.success {
  color: #4caf50;
}

/* Submit button */
.upload-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.2px;
  transition: background 0.15s, transform 0.1s, box-shadow 0.2s;
  outline: none;
}

.upload-submit-btn:hover {
  background: #f44336;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--red-glow);
}

.upload-submit-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.upload-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Go to Meeting link-button shown after successful upload */
.upload-meeting-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  margin-bottom: 12px;
  border: 1.5px solid var(--red);
  border-radius: 10px;
  background: transparent;
  color: var(--red);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  box-sizing: border-box;
}

.upload-meeting-link:hover {
  background: var(--red);
  color: #fff;
}

.upload-meeting-link[hidden] {
  display: none;
}
