/* ─────────────────────────────────────────────
   TerriReplay — Premium Dark Theme
   ───────────────────────────────────────────── */

:root {
  --bg-base:       #0a0a14;
  --bg-surface:    #0f0f1e;
  --bg-panel:      rgba(16, 16, 32, 0.85);
  --bg-panel-alt:  rgba(20, 20, 40, 0.9);
  --bg-input:      rgba(255, 255, 255, 0.04);
  --bg-input-focus: rgba(255, 255, 255, 0.07);

  --border:        rgba(255, 255, 255, 0.07);
  --border-active: rgba(130, 80, 255, 0.5);
  --border-glow:   rgba(130, 80, 255, 0.25);

  --accent:        #7c3aed;
  --accent-light:  #9d5ff0;
  --accent-glow:   rgba(124, 58, 237, 0.35);
  --accent-alt:    #3a8bff;

  --text-primary:  rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-muted:    rgba(255, 255, 255, 0.3);

  --success:       #22c55e;
  --warning:       #f59e0b;
  --error:         #ef4444;
  --info:          #38bdf8;

  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-xl:     28px;

  --shadow-panel:  0 8px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
  --shadow-btn:    0 4px 24px rgba(124, 58, 237, 0.4);
  --shadow-glow:   0 0 40px rgba(124, 58, 237, 0.2);

  --transition:    all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  --font-display:  'Outfit', sans-serif;
  --font-body:     'Inter', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Background Gradient ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(124,58,237,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(58,139,255,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(10,10,30,0.95) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ── Animated Background Particles ── */
.bg-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.15), transparent 70%);
  animation: float linear infinite;
}

.particle:nth-child(1)  { width: 300px; height: 300px; top: 5%;  left: 8%;   animation-duration: 25s; animation-delay: 0s; }
.particle:nth-child(2)  { width: 200px; height: 200px; top: 60%; left: 85%;  animation-duration: 32s; animation-delay: -8s; }
.particle:nth-child(3)  { width: 150px; height: 150px; top: 80%; left: 15%;  animation-duration: 28s; animation-delay: -15s; }
.particle:nth-child(4)  { width: 250px; height: 250px; top: 30%; left: 70%;  animation-duration: 20s; animation-delay: -5s;  background: radial-gradient(circle, rgba(58,139,255,0.1), transparent 70%); }
.particle:nth-child(5)  { width: 180px; height: 180px; top: 15%; left: 50%;  animation-duration: 35s; animation-delay: -20s; }
.particle:nth-child(6)  { width: 120px; height: 120px; top: 70%; left: 55%;  animation-duration: 22s; animation-delay: -3s;  background: radial-gradient(circle, rgba(58,139,255,0.08), transparent 70%); }
.particle:nth-child(7)  { width: 200px; height: 200px; top: 45%; left: 30%;  animation-duration: 40s; animation-delay: -12s; }
.particle:nth-child(8)  { width: 100px; height: 100px; top: 90%; left: 40%;  animation-duration: 18s; animation-delay: -7s; }
.particle:nth-child(9)  { width: 350px; height: 350px; top: 50%; left: 90%;  animation-duration: 50s; animation-delay: -25s; background: radial-gradient(circle, rgba(124,58,237,0.06), transparent 70%); }

@keyframes float {
  0%   { transform: translateY(0) rotate(0deg);    opacity: 0.6; }
  33%  { transform: translateY(-40px) rotate(90deg);  opacity: 1; }
  66%  { transform: translateY(20px) rotate(180deg); opacity: 0.4; }
  100% { transform: translateY(0) rotate(360deg);  opacity: 0.6; }
}

/* ── Header ── */
.header {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1rem 1.25rem;
  flex-shrink: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.logo-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 12px rgba(124,58,237,0.6));
  animation: pulse-icon 3s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(124,58,237,0.6)); }
  50%       { filter: drop-shadow(0 0 20px rgba(124,58,237,1));   }
}

.logo-text {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 40%, #3a8bff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.logo-badge {
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-light);
  background: rgba(124,58,237,0.18);
  border: 1px solid rgba(124,58,237,0.35);
  padding: 0.18em 0.5em;
  border-radius: 20px;
  vertical-align: super;
  margin-left: 0.25rem;
}

.header-subtitle {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ── Main Layout ── */
.main-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1rem;
  flex: 1;
  padding: 0.5rem 1.25rem 0;
  position: relative;
  z-index: 1;
  min-height: 0;
  max-height: calc(100vh - 134px);
}

/* ── Panels ── */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-panel);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
}

.panel-header {
  padding: 1.1rem 1.25rem 0.65rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.01em;
}

.panel-icon { font-size: 1rem; }

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(124,58,237,0.3) transparent;
}

.panel-body::-webkit-scrollbar { width: 4px; }
.panel-body::-webkit-scrollbar-track { background: transparent; }
.panel-body::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.3); border-radius: 4px; }

/* ── Tabs ── */
.tab-bar {
  display: flex;
  gap: 0.25rem;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
  margin-bottom: 0.85rem;
}

.tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.tab:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }

.tab.active {
  background: rgba(124,58,237,0.25);
  color: #c4b5fd;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(124,58,237,0.3);
}

.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── Labels & Fields ── */
.field-label {
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.field-hint {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 0.15rem;
}

.field-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.45rem;
  line-height: 1.4;
}

.field-group { display: flex; flex-direction: column; }

/* ── Textarea ── */
.replay-textarea {
  width: 100%;
  height: 120px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  line-height: 1.5;
  padding: 0.7rem 0.85rem;
  resize: vertical;
  outline: none;
  transition: var(--transition);
}

.replay-textarea::placeholder { color: var(--text-muted); font-size: 0.71rem; font-family: var(--font-body); }
.replay-textarea:focus {
  background: var(--bg-input-focus);
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px var(--border-glow);
}

.textarea-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

/* ── Buttons ── */
.btn-ghost {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.09);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.15);
}

.btn-small { font-size: 0.72rem; padding: 0.3rem 0.65rem; }

/* ── Drop Zone ── */
.drop-zone {
  border: 2px dashed rgba(124,58,237,0.3);
  border-radius: var(--radius-md);
  background: rgba(124,58,237,0.04);
  padding: 2rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.drop-zone:hover, .drop-zone.drag-over {
  border-color: rgba(124,58,237,0.7);
  background: rgba(124,58,237,0.1);
  box-shadow: 0 0 24px rgba(124,58,237,0.15);
}

.drop-zone-icon { font-size: 2rem; }
.drop-zone-text { font-size: 0.85rem; font-weight: 500; color: var(--text-primary); }
.drop-zone-sub { font-size: 0.72rem; color: var(--text-muted); }

.file-info {
  margin-top: 0.65rem;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  color: var(--success);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  word-break: break-word;
}

/* ── Date Input ── */
.date-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 0.6rem 0.85rem;
  outline: none;
  transition: var(--transition);
  cursor: pointer;
  color-scheme: dark;
}

.date-input:focus {
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px var(--border-glow);
}

select.date-input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.2rem;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}

select.date-input option {
  background: #1a1a2e;
  color: var(--text-primary);
}

/* ── Launch Button ── */
.btn-launch {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 50%, #3730a3 100%);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  letter-spacing: 0.02em;
  transition: var(--transition);
  box-shadow: var(--shadow-btn);
}

.btn-launch:hover {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 50%, #4338ca 100%);
  box-shadow: 0 6px 32px rgba(124,58,237,0.55);
  transform: translateY(-1px);
}

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

.btn-launch:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-launch-icon { font-size: 1.1rem; }

.btn-launch-shimmer {
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0%   { left: -100%; }
  100% { left: 200%;  }
}

/* ── Status Box ── */
.status-box {
  margin-top: 0.75rem;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  font-size: 0.75rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.status-box.status-loading {
  background: rgba(58,139,255,0.1);
  border: 1px solid rgba(58,139,255,0.25);
  color: var(--info);
}

.status-box.status-success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  color: var(--success);
}

.status-box.status-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  color: var(--error);
}

.status-box.status-warn {
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.25);
  color: var(--warning);
}

/* ── Snapshot Navigator ── */
.snapshot-nav {
  border-top: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  background: rgba(0,0,0,0.2);
  flex-shrink: 0;
}

.snapshot-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.snapshot-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.snapshot-date {
  font-size: 0.78rem;
  font-family: 'Courier New', monospace;
  color: var(--accent-light);
  font-weight: 600;
}

.snapshot-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-nav {
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 6px;
  color: #c4b5fd;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-nav:hover:not(:disabled) {
  background: rgba(124,58,237,0.3);
  border-color: rgba(124,58,237,0.6);
}

.btn-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.snapshot-pos {
  font-size: 0.72rem;
  color: var(--text-muted);
  min-width: 40px;
  text-align: center;
}

.snapshot-note {
  font-size: 0.67rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.4;
}

.viewer-panel {
  position: relative;
  overflow: hidden;
  min-height: 0;
}

/* ── Fullscreen Button ── */
.btn-fullscreen {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(15, 25, 45, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.6);
  color: #38bdf8;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.25);
}

.btn-fullscreen:hover {
  background: rgba(20, 35, 60, 0.95);
  border-color: #38bdf8;
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.viewer-panel:fullscreen {
  border-radius: 0;
  border: none;
}

.viewer-panel:fullscreen .btn-fullscreen {
  opacity: 0.1;
  top: 20px;
  right: 20px;
}

.viewer-panel:fullscreen .btn-fullscreen:hover {
  opacity: 1;
}

.viewer-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(15,15,30,0.95) 0%, rgba(10,10,20,0.98) 100%);
  z-index: 2;
  transition: opacity 0.4s ease;
}

.viewer-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.overlay-content {
  text-align: center;
  padding: 2rem;
  max-width: 360px;
}

.overlay-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 0 20px rgba(124,58,237,0.5));
  animation: float-icon 4s ease-in-out infinite;
}

@keyframes float-icon {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.overlay-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.overlay-body {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Loading Dots ── */
.loading-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 1.25rem;
}

.loading-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-light);
  animation: dot-bounce 1.3s ease-in-out infinite;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-bounce {
  0%, 60%, 100% { transform: translateY(0);     opacity: 0.4; }
  30%           { transform: translateY(-10px); opacity: 1; }
}

/* ── Replay Frame ── */
.replay-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  border-radius: inherit;
  transition: opacity 0.5s ease-in;
}

/* ── Footer ── */
.app-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

/* ── Utility ── */
.hidden { display: none !important; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.3); border-radius: 4px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .main-layout {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    max-height: none;
    padding-bottom: 2rem;
    height: auto;
  }
  .input-panel { flex: none; max-height: none; }
  .viewer-panel { flex: none; height: 60vh; min-height: 400px; }
}

@media (max-width: 500px) {
  .logo-text  { font-size: 1.5rem; }
  .header     { padding: 1.25rem 1rem 0.75rem; }
  .main-layout{ padding: 0.5rem; gap: 0.5rem; }
  .panel-body { padding: 1rem; }
  
  .floating-version-controls {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0.85rem;
    gap: 0.5rem;
    width: calc(100% - 24px);
  }
  .vc-buttons { 
    flex-direction: row; 
    margin-left: 0; 
    width: 100%; 
    justify-content: space-between; 
    gap: 0.5rem;
  }
  .btn-vc { 
    flex: 1; 
    text-align: center; 
    justify-content: center; 
  }
}

/* ── Floating Version Controls ── */
.floating-version-controls {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  background: rgba(15, 15, 30, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-version-controls.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-15px) scale(0.98);
}

.btn-vc-close {
  position: absolute;
  top: 6px;
  right: 6px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.75rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-vc-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.vc-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.3));
}

.vc-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.vc-text strong {
  color: var(--warning);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.vc-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-left: 0.5rem;
}

.btn-vc {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 80px;
  text-align: left;
}

.btn-vc:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  transform: translateX(2px);
}

.btn-vc:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.viewer-panel:fullscreen .floating-version-controls {
  top: 20px;
  left: 20px;
}
