/**
 * Landing Page Auditor - Shared Theme
 * Premium modern dark theme with blue accents
 * Optimized for readability
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ========================================
   BASE STYLES
   ======================================== */

* {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #111827 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Mesh gradient background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 80% 40%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 90%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle grid pattern */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ========================================
   TEXT CONTRAST - IMPROVED READABILITY
   ======================================== */

.text-slate-600 { color: #9ca3af !important; }
.text-slate-500 { color: #b0b8c4 !important; }
.text-slate-400 { color: #c5cdd8 !important; }
.text-slate-300 { color: #dce2eb !important; }

/* Muted text utilities for reports */
.text-muted { color: #a8b2c1; }
.text-muted-2 { color: #8d99ab; }
.text-muted-light { color: #c5cdd8; }

/* ========================================
   MAIN SHELL
   ======================================== */

.shell {
  background: linear-gradient(180deg, rgba(36, 48, 68, 0.88) 0%, rgba(22, 32, 50, 0.94) 100%);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 25px 50px -12px rgba(0, 0, 0, 0.4),
    0 0 100px rgba(59, 130, 246, 0.08);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.shell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);
}

/* ========================================
   GLASS CARD
   ======================================== */

.card-glass {
  background: linear-gradient(180deg, rgba(55, 70, 90, 0.55) 0%, rgba(35, 48, 66, 0.55) 100%);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 4px 24px rgba(0, 0, 0, 0.15);
  position: relative;
  transition: all 0.3s ease;
}

.card-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
}

.card-glass:hover {
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 0 40px rgba(59, 130, 246, 0.04);
}

/* ========================================
   SUB PANEL
   ======================================== */

.sub-panel {
  background: rgba(20, 30, 48, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
}

/* ========================================
   EVIDENCE ITEM - ROBUST GRID LAYOUT
   ======================================== */

.evidence-item {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 16px;
  align-items: start;
  overflow: hidden;
}

@media (max-width: 768px) {
  .evidence-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .evidence-item .evidence-media {
    order: 2;
  }
  .evidence-item .evidence-text {
    order: 1;
  }
}

.evidence-text {
  min-width: 0;
  overflow: hidden;
}

.evidence-text .break-all {
  word-break: break-all;
}

.evidence-text .break-words {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.evidence-media {
  width: 240px;
  max-width: 240px;
  flex-shrink: 0;
  overflow: hidden;
}

@media (max-width: 768px) {
  .evidence-media {
    width: 100%;
    max-width: 100%;
  }
}

.evidence-thumb {
  display: block;
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.evidence-thumb:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.1);
}

.evidence-thumb img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.15);
}

/* Evidence kind badge - with proper spacing */
.evidence-kind {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8d99ab;
  background: rgba(100, 116, 139, 0.15);
  border: 1px solid rgba(100, 116, 139, 0.2);
  border-radius: 4px;
}

/* ========================================
   INPUT STYLING
   ======================================== */

.input-premium {
  background: rgba(17, 24, 39, 0.7);
  border: 1.5px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  color: #f1f5f9;
  transition: all 0.2s ease;
}

.input-premium::placeholder {
  color: #6b7b8f;
}

.input-premium:hover {
  border-color: rgba(148, 163, 184, 0.28);
}

.input-premium:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), 0 0 20px rgba(59, 130, 246, 0.1);
}

/* ========================================
   SELECT STYLING
   ======================================== */

.select-premium {
  background: rgba(17, 24, 39, 0.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2394a3b8'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat right 12px center;
  background-size: 16px;
  border: 1.5px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  color: #e2e8f0;
  padding-right: 40px;
  -webkit-appearance: none;
  appearance: none;
  transition: all 0.2s ease;
}

.select-premium:hover {
  border-color: rgba(148, 163, 184, 0.28);
}

.select-premium:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), 0 0 20px rgba(59, 130, 246, 0.1);
}

/* ========================================
   PRIMARY BUTTON
   ======================================== */

.btn-primary {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 2px 8px rgba(37, 99, 235, 0.3),
    0 0 30px rgba(59, 130, 246, 0.2);
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  pointer-events: none;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 4px 16px rgba(37, 99, 235, 0.4),
    0 0 50px rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Secondary/Ghost button */
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  color: #b4c6dc;
  font-weight: 500;
  padding: 8px 16px;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.btn-ghost:hover {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}

/* ========================================
   SEGMENT CONTROL
   ======================================== */

.segment-wrapper {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 10px;
  padding: 4px;
  display: flex;
  gap: 4px;
}

.segment-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.segment-btn:hover:not(.active) {
  color: #d1d5db;
  background: rgba(148, 163, 184, 0.1);
}

.segment-btn.active {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
  color: #60a5fa;
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.3) inset,
    0 0 12px rgba(59, 130, 246, 0.1);
}

/* ========================================
   STEPPER
   ======================================== */

.stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  padding: 0 12px;
}

.stepper-track {
  position: absolute;
  top: 14px;
  left: 48px;
  right: 48px;
  height: 2px;
  background: rgba(148, 163, 184, 0.18);
  border-radius: 1px;
}

.stepper-progress {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  border-radius: 1px;
  transition: width 0.4s ease;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(36, 48, 68, 0.9);
  border: 2px solid rgba(148, 163, 184, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.step-dot svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.step.active .step-dot {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.15);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), 0 0 24px rgba(59, 130, 246, 0.2);
}

.step.completed .step-dot {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  border-color: #3b82f6;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.4);
}

.step.completed .step-dot svg {
  opacity: 1;
  color: white;
}

.step-label {
  margin-top: 8px;
  font-size: 10px;
  font-weight: 600;
  color: #8494a8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.step.active .step-label,
.step.completed .step-label {
  color: #60a5fa;
}

/* ========================================
   COPY BUTTON
   ======================================== */

.btn-copy {
  padding: 6px;
  border-radius: 6px;
  color: #8494a8;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.btn-copy:hover {
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.1);
}

.btn-copy .tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  background: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 4px;
  font-size: 11px;
  color: #60a5fa;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  margin-bottom: 4px;
}

.btn-copy .tooltip.show {
  opacity: 1;
}

/* ========================================
   SECTION HEADER
   ======================================== */

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-badge {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.18) 0%, transparent 100%);
}

/* ========================================
   FEATURE ITEM
   ======================================== */

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(20, 30, 48, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.feature-item:hover {
  background: rgba(25, 38, 58, 0.55);
  border-color: rgba(148, 163, 184, 0.12);
}

.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(99, 102, 241, 0.1) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 16px;
  height: 16px;
  color: #60a5fa;
}

/* ========================================
   TOPBAR
   ======================================== */

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  margin-bottom: 32px;
}

.topbar-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(148, 163, 184, 0.25) 100%);
}

.topbar-line:last-child {
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.25) 0%, transparent 100%);
}

.topbar-badge {
  padding: 4px 12px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========================================
   VERTICAL RAILS
   ======================================== */

.rail-left {
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.2) 50%, transparent 100%);
}

.rail-right {
  position: absolute;
  right: 0;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.2) 50%, transparent 100%);
}

/* ========================================
   ERROR PANEL
   ======================================== */

.error-panel {
  background: linear-gradient(180deg, rgba(153, 40, 40, 0.2) 0%, rgba(127, 29, 29, 0.15) 100%);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 10px;
}

/* ========================================
   STATUS BADGES
   ======================================== */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.status-badge .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-badge.status-pass {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #4ade80;
}
.status-badge.status-pass .status-dot {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.status-badge.status-fail {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fb7185;
}
.status-badge.status-fail .status-dot {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

.status-badge.status-warn {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}
.status-badge.status-warn .status-dot {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

.status-badge.status-na {
  background: rgba(100, 116, 139, 0.18);
  border: 1px solid rgba(100, 116, 139, 0.3);
  color: #a1b0c4;
}
.status-badge.status-na .status-dot {
  background: #64748b;
}

.status-badge.status-error {
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #d8b4fe;
}
.status-badge.status-error .status-dot {
  background: #a855f7;
  box-shadow: 0 0 6px rgba(168, 85, 247, 0.5);
}

/* ========================================
   PRIORITY BADGES
   ======================================== */

.priority-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.priority-critical {
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
  color: white;
}

.priority-high {
  background: linear-gradient(180deg, #ea580c 0%, #c2410c 100%);
  color: white;
}

.priority-medium {
  background: linear-gradient(180deg, #d97706 0%, #b45309 100%);
  color: white;
}

.priority-low {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
}

/* ========================================
   STAT CARDS
   ======================================== */

.stat-card {
  background: rgba(36, 48, 68, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  color: #a8b2c1;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value.score-high { color: #4ade80; }
.stat-value.score-medium { color: #fcd34d; }
.stat-value.score-low { color: #fb7185; }
.stat-value.color-pass { color: #4ade80; }
.stat-value.color-fail { color: #fb7185; }
.stat-value.color-warn { color: #fcd34d; }
.stat-value.color-na { color: #a8b2c1; }
.stat-value.color-evidence { color: #d8b4fe; }

/* ========================================
   OVERVIEW SCREENSHOTS
   ======================================== */

.overview-screenshot {
  display: block;
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.overview-screenshot:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

.overview-screenshot img {
  display: block;
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.15);
}

/* ========================================
   DETAILS / ACCORDION
   ======================================== */

details.accordion {
  background: rgba(20, 30, 48, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

details.accordion summary {
  padding: 12px 16px;
  cursor: pointer;
  color: #a8b2c1;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

details.accordion summary::-webkit-details-marker {
  display: none;
}

details.accordion summary::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform 0.2s ease;
}

details.accordion[open] summary::before {
  transform: rotate(90deg);
}

details.accordion summary:hover {
  color: #d1d5db;
  background: rgba(148, 163, 184, 0.06);
}

details.accordion > div {
  padding: 0 16px 16px 16px;
}

/* ========================================
   TABS
   ======================================== */

.tabs-container {
  display: flex;
  gap: 4px;
  background: rgba(20, 30, 48, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
}

.tab-btn {
  flex: 1;
  padding: 10px 20px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  color: #a8b2c1;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-btn:hover:not(.active) {
  color: #c5cdd8;
  background: rgba(148, 163, 184, 0.1);
}

.tab-btn.active {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
  color: #60a5fa;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3) inset;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(59, 130, 246, 0.5); }
  50% { opacity: 0.5; box-shadow: 0 0 16px rgba(59, 130, 246, 0.8); }
}

.pulse-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ========================================
   CODE / PRE
   ======================================== */

code {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 12px;
  background: rgba(17, 24, 39, 0.7);
  padding: 2px 6px;
  border-radius: 4px;
  color: #dce2eb;
}

pre {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 11px;
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  padding: 12px;
  overflow: auto;
  color: #c5cdd8;
}

/* ========================================
   LINKS
   ======================================== */

a.link-primary {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.2s ease;
}

a.link-primary:hover {
  color: #93c5fd;
  text-decoration: underline;
}

/* ========================================
   SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(17, 24, 39, 0.4);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.35);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}

/* ========================================
   IMAGE PREVIEW OVERLAY (Hover Zoom)
   ======================================== */

.img-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 15, 25, 0.85);
  backdrop-filter: blur(8px);
  opacity: 1;
  transition: opacity 0.2s ease;
}

.img-preview-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.img-preview-card {
  position: relative;
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 25px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(59, 130, 246, 0.15);
  transform: scale(1);
  transition: transform 0.2s ease;
}

.img-preview-overlay.hidden .img-preview-card {
  transform: scale(0.96);
}

.img-preview-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 6px;
  z-index: 1;
}

.img-preview-media {
  display: block;
  max-width: 85vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

/* Evidence thumb hover effect */
.evidence-thumb {
  cursor: zoom-in;
  transition: all 0.15s ease;
}

.evidence-thumb:hover {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.evidence-thumb:hover img {
  filter: brightness(1.05);
}
