/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Dark theme colors */
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --surface: #1f2937;
  --surface-hover: #374151;
  --border: #374151;
  --border-light: #4b5563;

  /* Text colors */
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  /* Accent colors */
  --accent-primary: #06b6d4;
  --accent-secondary: #8b5cf6;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-yellow: #f59e0b;
  --accent-pink: #ec4899;

  /* Band colors (PSK Reporter style) */
  --band-160: #ff6b6b;
  --band-80: #f39c12;
  --band-60: #f1c40f;
  --band-40: #27ae60;
  --band-30: #1abc9c;
  --band-20: #3498db;
  --band-17: #9b59b6;
  --band-15: #e74c3c;
  --band-12: #e91e63;
  --band-10: #ff5722;
  --band-6: #2196f3;
  --band-2: #00e676;
  --band-unk: #78909c;

  /* Mode colors */
  --mode-ft8: #3498db;
  --mode-ft4: #2980b9;
  --mode-cw: #e74c3c;
  --mode-ssb: #27ae60;
  --mode-rtty: #f39c12;
  --mode-psk: #9b59b6;
  --mode-sstv: #00bcd4;
  --mode-usb: #2ecc71;
  --mode-lsb: #1abc9c;
  --mode-fm: #ff9800;
  --mode-am: #e91e63;
  --mode-unk: #78909c;

  /* Continent colors */
  --continent-as: #ff6b6b;
  --continent-eu: #3498db;
  --continent-na: #27ae60;
  --continent-sa: #f39c12;
  --continent-af: #9b59b6;
  --continent-oc: #1abc9c;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
}

/* ===== Header ===== */
.header {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.logo-icon {
  font-size: 1.5rem;
}

.logo-subtitle {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-badge.online {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
}

.status-badge.offline {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.stats {
  display: flex;
  gap: 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.server-time {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
}

/* ===== Main Content ===== */
.main-content {
  padding: 1rem 1.5rem;
  max-width: 1800px;
  margin: 0 auto;
}

/* ===== Filters Row ===== */
.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.clear-btn {
  padding: 0.15rem 0.4rem;
  font-size: 0.6rem;
  background: var(--accent-red);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
}

.clear-btn:hover {
  background: #dc2626;
}

.band-filter,
.mode-filter,
.continent-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.band-btn,
.mode-btn,
.continent-btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.band-btn:hover,
.mode-btn:hover,
.continent-btn:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.band-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}

.mode-btn.active {
  background: var(--accent-secondary);
  border-color: var(--accent-secondary);
  color: white;
}

.continent-btn.active {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: white;
}

/* Continent button color coding */
.continent-btn.continent-as:not(.active) {
  border-color: var(--continent-as);
  color: var(--continent-as);
}

.continent-btn.continent-eu:not(.active) {
  border-color: var(--continent-eu);
  color: var(--continent-eu);
}

.continent-btn.continent-na:not(.active) {
  border-color: var(--continent-na);
  color: var(--continent-na);
}

.continent-btn.continent-sa:not(.active) {
  border-color: var(--continent-sa);
  color: var(--continent-sa);
}

.continent-btn.continent-af:not(.active) {
  border-color: var(--continent-af);
  color: var(--continent-af);
}

.continent-btn.continent-oc:not(.active) {
  border-color: var(--continent-oc);
  color: var(--continent-oc);
}

/* Band color coding */
.band-btn.band-160,
.band-tag.band-160 {
  --color: var(--band-160);
}

.band-btn.band-80,
.band-tag.band-80 {
  --color: var(--band-80);
}

.band-btn.band-60,
.band-tag.band-60 {
  --color: var(--band-60);
}

.band-btn.band-40,
.band-tag.band-40 {
  --color: var(--band-40);
}

.band-btn.band-30,
.band-tag.band-30 {
  --color: var(--band-30);
}

.band-btn.band-20,
.band-tag.band-20 {
  --color: var(--band-20);
}

.band-btn.band-17,
.band-tag.band-17 {
  --color: var(--band-17);
}

.band-btn.band-15,
.band-tag.band-15 {
  --color: var(--band-15);
}

.band-btn.band-12,
.band-tag.band-12 {
  --color: var(--band-12);
}

.band-btn.band-10,
.band-tag.band-10 {
  --color: var(--band-10);
}

.band-btn.band-6,
.band-tag.band-6 {
  --color: var(--band-6);
}

.band-btn.band-2,
.band-tag.band-2 {
  --color: var(--band-2);
}

.band-btn.band-unk,
.band-tag.band-unk {
  --color: var(--band-unk);
}

.band-btn[class*="band-"]:not(.active) {
  border-color: var(--color);
  color: var(--color);
}

.badge {
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.time-select {
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  cursor: pointer;
  min-width: 140px;
}

.time-select:focus {
  outline: none;
  border-color: var(--accent-primary);
}

/* ===== Toolbar ===== */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* ===== Auto-refresh Control ===== */
.auto-refresh-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.refresh-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.refresh-btn.refreshing svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.refresh-select {
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  cursor: pointer;
  min-width: 120px;
}

.refresh-select:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.refresh-countdown {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(6, 182, 212, 0.15);
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  min-width: 40px;
  text-align: center;
}

.refresh-time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-btn:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  border-color: var(--accent-primary);
}

.toggle-btn svg {
  width: 16px;
  height: 16px;
}

.filtered-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.filtered-toggle:hover,
.filtered-toggle.active {
  border-color: var(--accent-yellow);
  color: var(--text-primary);
}

.filtered-toggle input {
  display: none;
}

.toggle-switch {
  position: relative;
  width: 32px;
  height: 18px;
  border-radius: 9999px;
  background: var(--border-light);
  flex: 0 0 auto;
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-primary);
  transition: transform 0.2s ease;
}

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

.filtered-toggle input:checked + .toggle-switch::after {
  transform: translateX(14px);
}

.toggle-copy {
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.filtered-count {
  min-width: 20px;
  padding: 0.1rem 0.35rem;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.18);
  color: var(--accent-yellow);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-align: center;
}

.view-toggle {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-tertiary);
  padding: 0.2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.view-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-btn:hover {
  color: var(--text-primary);
  background: var(--surface-hover);
}

.view-btn.active {
  background: var(--accent-primary);
  color: white;
}

.view-btn svg {
  width: 16px;
  height: 16px;
}

/* ===== Spectrum View ===== */
.spectrum-container {
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 1rem;
  overflow-x: auto;
}

.spectrum-bands {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  min-height: 500px;
}

.spectrum-band {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 120px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
}

.spectrum-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.75rem 0.5rem;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}

.spectrum-label .band-name {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.spectrum-label .band-freq-range {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-top: 2px;
  text-align: center;
}

/* Band-specific label colors */
.spectrum-label.band-160 {
  border-top: 3px solid var(--band-160);
}

.spectrum-label.band-80 {
  border-top: 3px solid var(--band-80);
}

.spectrum-label.band-60 {
  border-top: 3px solid var(--band-60);
}

.spectrum-label.band-40 {
  border-top: 3px solid var(--band-40);
}

.spectrum-label.band-30 {
  border-top: 3px solid var(--band-30);
}

.spectrum-label.band-20 {
  border-top: 3px solid var(--band-20);
}

.spectrum-label.band-17 {
  border-top: 3px solid var(--band-17);
}

.spectrum-label.band-15 {
  border-top: 3px solid var(--band-15);
}

.spectrum-label.band-12 {
  border-top: 3px solid var(--band-12);
}

.spectrum-label.band-10 {
  border-top: 3px solid var(--band-10);
}

.spectrum-label.band-6 {
  border-top: 3px solid var(--band-6);
}

.spectrum-label.band-2 {
  border-top: 3px solid var(--band-2);
}

.spectrum-label.band-unk {
  border-top: 3px solid var(--band-unk);
}

.spectrum-content {
  display: flex;
  flex: 1;
  min-height: 400px;
}

/* Frequency labels track (left of markers) */
.freq-label-track {
  width: 55px;
  min-width: 55px;
  position: relative;
}

.freq-label {
  position: absolute;
  right: 4px;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.spectrum-track {
  width: 20px;
  min-width: 20px;
  position: relative;
  background: linear-gradient(180deg,
      var(--accent-primary) 0%,
      var(--accent-secondary) 50%,
      var(--accent-primary) 100%);
  opacity: 0.3;
}

.spectrum-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.grid-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--text-muted);
  opacity: 0.5;
}

/* Frequency markers on the track */
.freq-marker {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  z-index: 5;
}

.freq-marker.filtered-marker {
  opacity: 0.45;
  border-color: var(--accent-yellow);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

/* SVG connecting lines */
.spectrum-lines {
  width: 40px;
  min-width: 40px;
  height: 100%;
}

.connector-line {
  stroke: var(--text-muted);
  stroke-width: 1;
  opacity: 0.6;
}

.connector-line.stroke-ft8 {
  stroke: var(--mode-ft8);
}

.connector-line.stroke-ft4 {
  stroke: var(--mode-ft4);
}

.connector-line.stroke-cw {
  stroke: var(--mode-cw);
}

.connector-line.stroke-ssb {
  stroke: var(--mode-ssb);
}

.connector-line.stroke-rtty {
  stroke: var(--mode-rtty);
}

.connector-line.stroke-psk {
  stroke: var(--mode-psk);
}

.connector-line.stroke-sstv {
  stroke: var(--mode-sstv);
}

.connector-line.stroke-usb {
  stroke: var(--mode-usb);
}

.connector-line.stroke-lsb {
  stroke: var(--mode-lsb);
}

.connector-line.stroke-fm {
  stroke: var(--mode-fm);
}

.connector-line.stroke-am {
  stroke: var(--mode-am);
}

.connector-line.stroke-unk {
  stroke: var(--mode-unk);
}

/* Callsign list (stacked, no overlap) */
.callsign-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
  overflow-y: auto;
}

.callsign-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.callsign-item:hover {
  transform: scale(1.02);
  z-index: 10;
}

.callsign-item.filtered-callsign {
  opacity: 0.72;
  outline: 1px dashed rgba(245, 158, 11, 0.8);
  outline-offset: -2px;
}

.callsign-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

.callsign-freq {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.7);
  margin-left: 0.5rem;
}

/* Mode-based background colors for spectrum spots */
.mode-bg-ft8 {
  background: var(--mode-ft8);
}

.mode-bg-ft4 {
  background: var(--mode-ft4);
}

.mode-bg-cw {
  background: var(--mode-cw);
}

.mode-bg-ssb {
  background: var(--mode-ssb);
}

.mode-bg-rtty {
  background: var(--mode-rtty);
}

.mode-bg-psk {
  background: var(--mode-psk);
}

.mode-bg-sstv {
  background: var(--mode-sstv);
}

.mode-bg-usb {
  background: var(--mode-usb);
}

.mode-bg-lsb {
  background: var(--mode-lsb);
}

.mode-bg-fm {
  background: var(--mode-fm);
}

.mode-bg-am {
  background: var(--mode-am);
}

.mode-bg-unk {
  background: var(--mode-unk);
}

.callsign-item:not([class*="mode-bg-"]),
.freq-marker:not([class*="mode-bg-"]) {
  background: var(--text-muted);
}

.spectrum-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Spectrum tooltip */
.spectrum-tooltip {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  padding: 0.75rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 100;
}

.callsign-item:hover .spectrum-tooltip {
  display: block;
}

.tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.tooltip-call {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.tooltip-mode {
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
}

.tooltip-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.tooltip-label {
  color: var(--text-muted);
}

.tooltip-value {
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.spectrum-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ===== Search Section ===== */
.search-section {
  margin-bottom: 1rem;
}

.search-box {
  position: relative;
  max-width: 400px;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.search-input {
  width: 100%;
  padding: 0.6rem 0.75rem 0.6rem 2.5rem;
  font-size: 0.85rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.search-input::placeholder {
  color: var(--text-muted);
}

/* ===== Spots Table ===== */
.spots-container {
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.table-wrapper {
  overflow-x: auto;
}

.spots-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.spots-table th {
  padding: 0.75rem 0.6rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.spots-table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.spots-table tbody tr {
  transition: background 0.2s ease;
}

.spots-table tbody tr:hover {
  background: var(--surface-hover);
}

.spots-table tbody tr.new-spot {
  animation: highlight 2s ease;
}

.spots-table tbody tr.filtered-spot {
  background: rgba(245, 158, 11, 0.07);
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(245, 158, 11, 0.9);
}

.spots-table tbody tr.filtered-spot:hover {
  background: rgba(245, 158, 11, 0.14);
}

.spots-table tbody tr.filtered-spot .callsign {
  color: var(--accent-yellow);
}

.filtered-callsign .callsign-text,
.filtered-callsign .callsign-freq {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 255, 255, 0.9);
}

@keyframes highlight {
  0% {
    background: rgba(6, 182, 212, 0.3);
  }

  100% {
    background: transparent;
  }
}

/* Column widths */
.col-time {
  width: 80px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.col-call {
  width: 100px;
}

.col-entity {
  width: 140px;
}

.col-continent {
  width: 60px;
}

.col-freq {
  width: 85px;
  font-family: var(--font-mono);
}

.col-band {
  width: 60px;
}

.col-mode {
  width: 60px;
}

.col-spotter {
  width: 120px;
}

.col-info {
  min-width: 150px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Callsign styling */
.callsign {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-primary);
  font-size: 0.85rem;
}

.filter-note {
  display: inline-block;
  margin-left: 0.35rem;
  color: var(--accent-yellow);
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.spotter-call {
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.spotter-continent {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.entity-name {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

/* Tags */
.band-tag,
.mode-tag,
.continent-tag {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.band-tag {
  background: var(--color, var(--bg-tertiary));
  color: white;
}

.band-tag.band-160 {
  background: var(--band-160);
}

.band-tag.band-80 {
  background: var(--band-80);
}

.band-tag.band-60 {
  background: var(--band-60);
}

.band-tag.band-40 {
  background: var(--band-40);
}

.band-tag.band-30 {
  background: var(--band-30);
}

.band-tag.band-20 {
  background: var(--band-20);
}

.band-tag.band-17 {
  background: var(--band-17);
}

.band-tag.band-15 {
  background: var(--band-15);
}

.band-tag.band-12 {
  background: var(--band-12);
}

.band-tag.band-10 {
  background: var(--band-10);
}

.band-tag.band-6 {
  background: var(--band-6);
}

.band-tag.band-2 {
  background: var(--band-2);
}

.band-tag.band-unk {
  background: var(--band-unk);
}

.mode-tag.mode-ft8 {
  background: var(--mode-ft8);
  color: white;
}

.mode-tag.mode-ft4 {
  background: var(--mode-ft4);
  color: white;
}

.mode-tag.mode-cw {
  background: var(--mode-cw);
  color: white;
}

.mode-tag.mode-ssb {
  background: var(--mode-ssb);
  color: white;
}

.mode-tag.mode-rtty {
  background: var(--mode-rtty);
  color: white;
}

.mode-tag.mode-psk {
  background: var(--mode-psk);
  color: white;
}

.mode-tag.mode-sstv {
  background: var(--mode-sstv);
  color: white;
}

.mode-tag.mode-usb {
  background: var(--mode-usb);
  color: white;
}

.mode-tag.mode-lsb {
  background: var(--mode-lsb);
  color: white;
}

.mode-tag.mode-fm {
  background: var(--mode-fm);
  color: white;
}

.mode-tag.mode-am {
  background: var(--mode-am);
  color: white;
}

.mode-tag.mode-unk {
  background: var(--mode-unk);
  color: white;
}

.mode-tag:not([class*="mode-"]) {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.continent-tag {
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
}

.continent-tag.continent-as {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

.continent-tag.continent-eu {
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
}

.continent-tag.continent-na {
  background: rgba(39, 174, 96, 0.2);
  color: #27ae60;
}

.continent-tag.continent-sa {
  background: rgba(243, 156, 18, 0.2);
  color: #f39c12;
}

.continent-tag.continent-af {
  background: rgba(155, 89, 182, 0.2);
  color: #9b59b6;
}

.continent-tag.continent-oc {
  background: rgba(26, 188, 156, 0.2);
  color: #1abc9c;
}

/* Empty state */
.no-data {
  text-align: center;
  padding: 3rem 1rem !important;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
}

.empty-icon {
  width: 48px;
  height: 48px;
  opacity: 0.5;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.footer a {
  color: var(--accent-primary);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
  }

  .header-left,
  .header-right {
    width: 100%;
    justify-content: center;
  }

  .filters-row {
    flex-direction: column;
    padding: 0.75rem;
  }

  .main-content {
    padding: 0.75rem;
  }

  .spots-table th,
  .spots-table td {
    padding: 0.4rem;
  }

  .col-entity,
  .col-info {
    display: none;
  }
}
