/* ═══════════════════════════════════════════
   VIEWER PANEL
═══════════════════════════════════════════ */

.viewer-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-base);
  min-width: 0;
}

.viewer-container {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-active) transparent;
  position: relative;
}

.viewer-container::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.viewer-container::-webkit-scrollbar-track {
  background: transparent;
}

.viewer-container::-webkit-scrollbar-thumb {
  background: var(--bg-active);
  border-radius: 3px;
}

/* ═══════════════════════════════════════════
   VIEWER CANVAS
═══════════════════════════════════════════ */

.viewer-canvas {
  display: block;
  box-shadow: var(--shadow-lg);
  border-radius: 2px;
  transition: box-shadow var(--t-mid);
  background: #fff;
  /* actual width/height set by JS */
}

.viewer-canvas:not([width]) {
  display: none;
}

/* ═══════════════════════════════════════════
   VIEWER FOOTER
═══════════════════════════════════════════ */

.viewer-footer {
  height: 44px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  gap: 16px;
}

/* ═══════════════════════════════════════════
   PAGE NAVIGATION
═══════════════════════════════════════════ */

.viewer-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.page-input {
  width: 36px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px 6px;
  text-align: center;
  font-size: 12px;
  color: var(--text-primary);
  transition: border-color var(--t-fast);

  /* Hide number spinners */
  -moz-appearance: textfield;
}

.page-input::-webkit-outer-spin-button,
.page-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.page-input:focus {
  outline: none;
  border-color: var(--accent);
}

.page-separator {
  color: var(--text-muted);
}

.page-total {
  color: var(--text-muted);
  min-width: 24px;
}

/* ═══════════════════════════════════════════
   ZOOM CONTROLS
═══════════════════════════════════════════ */

.zoom-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.zoom-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  min-width: 38px;
  text-align: center;
}
