/* ================================================================
   MineCo CMS — Admin Panel Styles
   Dark mint theme: #03fcf0 accent, #070707 background
   ================================================================ */

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
  /* Colors */
  --color-bg:           #070707;
  --color-surface:      #101010;
  --color-surface-alt:  #1a1a1a;
  --color-border:       #222222;
  --color-border-focus: #03fcf0;
  --color-accent:       #03fcf0;
  --color-accent-hover: #02e0d0;
  --color-accent-dim:   rgba(3, 252, 240, 0.1);
  --color-text:         #ffffff;
  --color-text-muted:   #a8a8b3;
  --color-text-dim:     #666666;
  --color-success:      #00c853;
  --color-success-hover:#00a844;
  --color-error:        #ff4040;
  --color-error-hover:  #e03030;
  --color-warning:      #ffc107;
  --color-overlay:      rgba(7, 7, 7, 0.8);

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  20px;
  --space-xl:  24px;
  --space-2xl: 32px;
  --space-3xl: 40px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 20px;

  /* Typography */
  --font-sans:  "Inter", sans-serif;
  --font-display: "Orbitron", sans-serif;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;

  /* Layout */
  --topbar-height: 60px;
  --sidebar-width: 250px;
}

/* ─── Reset and Base ────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Keyboard accessibility: visible focus ring */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Selection color */
::selection {
  background: var(--color-accent-dim);
  color: var(--color-text);
}

/* ─── Layout ────────────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0; /* prevent flex overflow */
}

/* ─── Top Bar ───────────────────────────────────────────── */
.top-bar {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0 var(--space-lg);
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: var(--space-md);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  min-width: 0;
  flex: 1;
}

.top-bar-left h1 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 20px;
  cursor: pointer;
  display: none;
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.mobile-menu-toggle:hover {
  background: var(--color-accent-dim);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-accent);
}

.user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* ─── Breadcrumbs ───────────────────────────────────────── */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  color: var(--color-text-muted);
  font-size: 14px;
  flex-wrap: wrap;
}

.breadcrumb-link {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.breadcrumb-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.breadcrumb-link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.breadcrumb-separator {
  color: var(--color-border);
  user-select: none;
}

.breadcrumb-current {
  color: var(--color-text);
  font-weight: 500;
}

/* ─── Content Wrapper ───────────────────────────────────── */
.content-wrapper {
  flex: 1;
  padding: var(--space-lg);
  overflow-y: auto;
  position: relative;
}

.content-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.content-section:last-child {
  margin-bottom: 0;
}

.content-section h2 {
  margin-bottom: var(--space-lg);
  color: var(--color-accent);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ─── Dashboard Stats ───────────────────────────────────── */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: border-color var(--transition-base);
}

.stat-card:hover {
  border-color: var(--color-accent);
}

.stat-icon {
  width: 50px;
  height: 50px;
  background: var(--color-surface-alt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.stat-info h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--color-accent);
  line-height: 1.2;
}

.stat-info p {
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ─── Quick Actions ─────────────────────────────────────── */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
}

.action-button {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-md);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-base);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
}

.action-button:hover {
  background: var(--color-border);
  border-color: var(--color-accent);
  transform: translateY(-1px);
}

.action-button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.action-button i {
  font-size: 24px;
  color: var(--color-accent);
}

/* ─── Empty State ───────────────────────────────────────── */
.empty-state {
  text-align: center;
  color: var(--color-text-muted);
  padding: var(--space-3xl) var(--space-lg);
  font-size: 14px;
}

/* ─── Activity Feed ─────────────────────────────────────── */
.activity-feed {
  min-height: 200px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  gap: var(--space-md);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-item p:first-child {
  font-size: 14px;
  color: var(--color-text);
}

.activity-time {
  color: var(--color-text-muted);
  font-size: 12px;
  white-space: nowrap;
}

/* ─── Form Elements ─────────────────────────────────────── */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-sm);
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-dim);
}

.form-control:focus-visible {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-dim);
}

.form-control[disabled],
.form-control[readonly] {
  opacity: 0.5;
  cursor: not-allowed;
}

.form-control::placeholder {
  color: var(--color-text-dim);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a8a8b3' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-control.invalid {
  border-color: var(--color-error);
  box-shadow: 0 0 0 1px rgba(255, 64, 64, 0.3);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

/* Required field indicator */
.required {
  color: var(--color-error);
  font-weight: 700;
}

/* Form section header */
.form-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  gap: var(--space-md);
  flex-wrap: wrap;
}

.form-section-title {
  font-size: 18px;
  color: var(--color-accent);
  margin: 0;
  font-weight: 600;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn-secondary {
  background: var(--color-surface-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-border);
  border-color: var(--color-accent);
}

.btn-danger {
  background: var(--color-error);
  color: var(--color-text);
}

.btn-danger:hover {
  background: var(--color-error-hover);
}

.btn-publish {
  background: var(--color-success);
  color: var(--color-bg);
}

.btn-publish:hover {
  background: var(--color-success-hover);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* ─── Tables ────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
}

.table th,
.table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.table th {
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table td {
  font-size: 14px;
}

.table tr:hover {
  background: var(--color-surface-alt);
}

.table tr:last-child td {
  border-bottom: none;
}

.table-actions {
  display: flex;
  gap: var(--space-sm);
}

/* ─── Cards ─────────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
  gap: var(--space-md);
}

.card-title {
  font-size: 18px;
  color: var(--color-accent);
  font-weight: 600;
}

/* ─── Status Badges ─────────────────────────────────────── */
.status-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.status-info {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.status-online,
.status-published {
  background: var(--color-accent-dim);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.status-offline {
  background: rgba(255, 64, 64, 0.15);
  color: var(--color-error);
  border: 1px solid var(--color-error);
}

.status-maintenance {
  background: rgba(255, 193, 7, 0.15);
  color: var(--color-warning);
  border: 1px solid var(--color-warning);
}

.status-draft {
  background: rgba(168, 168, 179, 0.15);
  color: var(--color-text-muted);
  border: 1px solid var(--color-text-muted);
}

/* ─── Toast Notifications ───────────────────────────────── */
.toast-container {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 400px;
  pointer-events: none;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastSlideIn 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  pointer-events: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.toast i {
  font-size: 16px;
  flex-shrink: 0;
}

.toast-success {
  background: var(--color-surface);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.toast-error {
  background: var(--color-surface);
  border: 1px solid var(--color-error);
  color: var(--color-error);
}

.toast-info {
  background: var(--color-surface);
  border: 1px solid var(--color-text-muted);
  color: var(--color-text-muted);
}

.toast-warning {
  background: var(--color-surface);
  border: 1px solid var(--color-warning);
  color: var(--color-warning);
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* ─── Loading Spinner ───────────────────────────────────── */
.loading-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-accent-dim);
  border-radius: 50%;
  border-top-color: var(--color-accent);
  animation: spin 0.8s linear infinite;
}

.loading-spinner-lg {
  width: 40px;
  height: 40px;
  border-width: 3px;
}

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

/* ─── Loading Skeleton ──────────────────────────────────── */
.skeleton {
  position: relative;
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 100%
  );
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}

@keyframes skeletonShimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.skeleton-text {
  height: 16px;
  margin-bottom: var(--space-sm);
  border-radius: var(--radius-sm);
}

.skeleton-text:last-child {
  margin-bottom: 0;
  width: 60%;
}

.skeleton-title {
  height: 24px;
  width: 40%;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-sm);
}

.skeleton-stat {
  height: 90px;
  border-radius: var(--radius-lg);
}

.skeleton-card {
  height: 120px;
  border-radius: var(--radius-lg);
}

.skeleton-input {
  height: 44px;
  border-radius: var(--radius-md);
}

.skeleton-button {
  height: 42px;
  width: 120px;
  border-radius: var(--radius-md);
}

/* ─── Loading Overlay ───────────────────────────────────── */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(2px);
}

.loading-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  color: var(--color-text-muted);
  font-size: 14px;
}

/* ─── Confirmation Modal ────────────────────────────────── */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  backdrop-filter: blur(4px);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  margin-bottom: var(--space-lg);
}

.modal-header h3 {
  color: var(--color-accent);
  font-size: 18px;
  font-weight: 600;
}

.modal-body {
  margin-bottom: var(--space-lg);
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ─── Toggle Switch ─────────────────────────────────────── */
.toggle-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-border);
  transition: var(--transition-base);
  border-radius: 24px;
}

.toggle-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--color-text);
  transition: var(--transition-base);
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--color-accent);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(24px);
}

.toggle-switch input:focus-visible + .toggle-slider {
  box-shadow: 0 0 0 3px var(--color-accent-dim);
}

.toggle-label {
  color: var(--color-text-muted);
  font-size: 14px;
  cursor: pointer;
}

/* ─── Image Upload ──────────────────────────────────────── */
.image-upload {
  position: relative;
  display: inline-block;
  margin-top: var(--space-sm);
}

.image-preview {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--color-border);
}

.image-upload-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.image-upload-label {
  display: block;
  padding: 10px 15px;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-base);
  font-size: 14px;
}

.image-upload-label:hover {
  border-color: var(--color-accent);
}

/* ─── Live Preview ──────────────────────────────────────── */
.live-preview {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin-top: var(--space-md);
}

.preview-hero {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.preview-hero-title {
  font-size: 24px;
  color: var(--color-accent);
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 700;
}

.preview-hero-subtitle {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.preview-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.preview-btn {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all var(--transition-fast);
}

.preview-btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.preview-btn-secondary {
  background: var(--color-surface-alt);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.preview-btn-tertiary {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.preview-features {
  text-align: center;
}

.preview-featured-title {
  font-size: 18px;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
  font-family: var(--font-display);
  font-weight: 700;
}

.preview-feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
}

.preview-feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
}

.preview-feature-card h4 {
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  font-size: 15px;
}

.preview-feature-card p {
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ─── Preview Link ──────────────────────────────────────── */
.preview-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-accent);
  text-decoration: none;
  font-size: 14px;
  transition: opacity var(--transition-fast);
}

.preview-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* ─── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-dim);
}