/* ============================================================
   style.css – KID e.V. Flohmarkt Buchungssystem
   Modernes Dark-Theme Design
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* --- Light Theme (Default) --- */
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-elevated: #f1f5f9;
  --bg-card: #ffffff;
  --border: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(0, 0, 0, 0.12);

  --accent: #d97706;
  /* Warmeres Gold für hellen Hintergrund */
  --accent-dark: #b45309;
  --accent-glow: rgba(217, 119, 6, 0.15);

  --free: #16a34a;
  --free-bg: rgba(22, 163, 74, 0.08);
  --booked: #dc2626;
  --booked-bg: rgba(220, 38, 38, 0.08);
  --selected: #d97706;
  --selected-bg: rgba(217, 119, 6, 0.15);

  --text: #0f172a;
  --text-muted: #64748b;
  --text-dim: #475569;

  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
}

body.dark-mode {
  /* --- Dark Theme --- */
  --bg-base: #0a0a14;
  --bg-surface: #12121f;
  --bg-elevated: #1a1a2e;
  --bg-card: #1e1e35;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);

  --accent: #f0b429;
  --accent-dark: #c8931a;
  --accent-glow: rgba(240, 180, 41, 0.2);

  --free: #22c55e;
  --free-bg: rgba(34, 197, 94, 0.15);
  --booked: #ef4444;
  --booked-bg: rgba(239, 68, 68, 0.15);
  --selected: #f0b429;
  --selected-bg: rgba(240, 180, 41, 0.25);

  --text: #e2e8f0;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-base);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- Background Decoration --- */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 20% 10%, var(--accent-glow) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
  transition: background var(--transition);
  pointer-events: none;
  z-index: 0;
}

/* --- Layout Helpers --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
  transition: background var(--transition), border-color var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-icon {
  height: 48px;
  width: auto;
  min-width: 48px;
  max-width: 120px;
  background: #fff;
  /* Logo hat weißen Hintergrund */
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border);
}

.logo-icon img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.logo-text h1 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-dim);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 1.1rem;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(15deg);
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.header-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--free);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

/* ============================================================
   HERO / EVENT SECTION
   ============================================================ */
.hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.event-selector-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.event-selector-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-select {
  appearance: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 2.5rem 0.65rem 1rem;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
  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='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.event-select:focus,
.event-select:hover {
  border-color: var(--accent);
}

.event-info-card {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.event-info-item {
  text-align: center;
}

.event-info-item .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  font-weight: 500;
}

.event-info-item .value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.event-info-item .value.accent {
  color: var(--accent);
  font-size: 1.4rem;
}

.event-info-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ============================================================
   LEGEND
   ============================================================ */
.legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.legend-dot {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  flex-shrink: 0;
}

.legend-dot.free {
  background: var(--free-bg);
  border: 2px solid var(--free);
}

.legend-dot.booked {
  background: var(--booked-bg);
  border: 2px solid var(--booked);
}

.legend-dot.selected {
  background: var(--selected-bg);
  border: 2px solid var(--selected);
}

/* ============================================================
   FLOOR PLAN
   ============================================================ */
.plan-section {
  margin-bottom: 3rem;
}

.plan-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  overflow-x: auto;
  box-shadow: var(--shadow);
}

.plan-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

#floor-plan {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  display: block;
  cursor: default;
}

/* SVG Table Styles */
.table-rect {
  rx: 6;
  ry: 6;
  transition: all 0.15s ease;
  cursor: pointer;
}

.table-group {
  cursor: pointer;
}

.table-group:focus {
  outline: none;
}

.table-group.free .table-rect {
  fill: var(--free-bg);
  stroke: var(--free);
  stroke-width: 1.5;
}

.table-group.free:hover .table-rect {
  fill: rgba(34, 197, 94, 0.35);
  filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.6));
  transform-origin: center;
  transform-box: fill-box;
}

.table-group.booked .table-rect {
  fill: var(--booked-bg);
  stroke: var(--booked);
  stroke-width: 1.5;
  cursor: not-allowed;
  opacity: 0.7;
}

.table-group.selected .table-rect {
  fill: var(--selected-bg);
  stroke: var(--selected);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 8px rgba(240, 180, 41, 0.6));
}

.table-group.selected:hover .table-rect {
  fill: rgba(240, 180, 41, 0.35);
}

.table-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
  user-select: none;
}

.table-group.free .table-label {
  fill: var(--free);
}

.table-group.booked .table-label {
  fill: var(--booked);
  opacity: 0.7;
}

.table-group.selected .table-label {
  fill: var(--selected);
}

/* Hall Labels / Areas */
.hall-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 600;
  fill: rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-anchor: middle;
  user-select: none;
}

.entrance-arrow {
  fill: rgba(240, 180, 41, 0.4);
}

.entrance-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  fill: var(--accent);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Loading Skeleton */
.plan-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
  flex-direction: column;
  gap: 1rem;
  color: var(--text-muted);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   BOOKING PANEL
   ============================================================ */
.booking-panel {
  position: sticky;
  bottom: 0;
  z-index: 50;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(20px);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.5);
}

.booking-panel.visible {
  transform: translateY(0);
}

.booking-panel-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

.booking-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.selected-table-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.selected-table-num {
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-size: 1.1rem;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.selected-table-info h3 {
  font-size: 1rem;
  font-weight: 700;
}

.selected-table-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-deselect {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-deselect:hover {
  border-color: var(--booked);
  color: var(--booked);
}

/* Form */
.booking-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  align-items: end;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-field input {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-field input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-field input.error {
  border-color: var(--booked);
}

.btn-book {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #000;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 16px var(--accent-glow);
  min-height: 46px;
}

.btn-book:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-book:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   INSTRUCTION PROMPT (when nothing selected)
   ============================================================ */
.select-prompt {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.select-prompt .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.select-prompt strong {
  color: var(--text-dim);
}

/* ============================================================
   MODAL (Confirmation / Error)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

.modal h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.modal.success h2 {
  color: var(--free);
}

.modal.error h2 {
  color: var(--booked);
}

.modal p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.modal-detail {
  background: var(--bg-elevated);
  border-radius: 10px;
  padding: 1.25rem;
  margin: 1.25rem 0;
  text-align: left;
}

.modal-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.modal-detail-row:not(:last-child) {
  border-bottom: 1px solid var(--border);
}

.modal-detail-row .k {
  color: var(--text-muted);
  font-size: 0.83rem;
}

.modal-detail-row .v {
  font-weight: 700;
  font-size: 0.9rem;
}

.modal-detail-row .v.highlight {
  color: var(--accent);
  font-size: 1.1rem;
}

.btn-modal-close {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 0.5rem;
}

.btn-modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  top: 80px;
  right: 1.5rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  max-width: 320px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease;
}

.toast.error {
  border-color: var(--booked);
}

.toast.success {
  border-color: var(--free);
}

@keyframes slideInRight {
  from {
    transform: translateX(110%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .event-info-card {
    padding: 1rem 1.5rem;
    gap: 1rem;
  }

  .event-info-divider {
    display: none;
  }

  .booking-form {
    grid-template-columns: 1fr 1fr;
  }

  .btn-book {
    grid-column: 1 / -1;
  }

  .plan-wrapper {
    padding: 0.75rem;
  }

  .legend {
    gap: 1rem;
  }

  .header-badge {
    display: none;
  }

  .rack-choice-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .booking-form {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 1.75rem 1.25rem;
  }

  .suggestion-bar {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* ============================================================
   RACK TYPE POPUP
   ============================================================ */
.rack-modal {
  max-width: 520px;
}

.rack-modal h2 {
  color: var(--accent) !important;
}

.rack-choice-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-rack-choice {
  flex: 1;
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  color: var(--text);
}

.btn-rack-choice:hover {
  border-color: var(--accent);
  background: rgba(240, 180, 41, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.rack-choice-icon {
  font-size: 2.5rem;
}

.rack-choice-label {
  font-size: 1rem;
  font-weight: 700;
}

.rack-choice-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   RACK FILTER INFO BAR
   ============================================================ */
.rack-filter-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  animation: slideInRight 0.3s ease;
}

.btn-change-rack {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--accent);
  padding: 0.4rem 0.9rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-change-rack:hover {
  border-color: var(--accent);
  background: rgba(240, 180, 41, 0.1);
}

/* ============================================================
   SUGGESTION BAR
   ============================================================ */
.suggestion-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 10px;
  padding: 0.85rem 1.5rem;
  margin-bottom: 1.5rem;
  animation: slideInRight 0.3s ease;
}

.suggestion-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
}

.suggestion-icon {
  font-size: 1.3rem;
}

.btn-accept-suggestion {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border: none;
  border-radius: 8px;
  color: #fff;
  padding: 0.5rem 1.2rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-accept-suggestion:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

/* ============================================================
   TABLE STATES: DIMMED & SUGGESTED
   ============================================================ */
.table-group.dimmed .table-rect {
  fill: rgba(255, 255, 255, 0.03) !important;
  stroke: rgba(255, 255, 255, 0.08) !important;
  stroke-width: 1;
  cursor: not-allowed;
}

.table-group.dimmed .table-label {
  fill: rgba(255, 255, 255, 0.15) !important;
}

.table-group.dimmed {
  cursor: not-allowed;
  pointer-events: none;
}

.table-group.suggested .table-rect {
  fill: rgba(139, 92, 246, 0.2);
  stroke: #8b5cf6;
  stroke-width: 2;
  animation: suggestPulse 1.5s ease-in-out infinite;
}

.table-group.suggested .table-label {
  fill: #a78bfa;
}

@keyframes suggestPulse {

  0%,
  100% {
    filter: drop-shadow(0 0 4px rgba(139, 92, 246, 0.3));
  }

  50% {
    filter: drop-shadow(0 0 12px rgba(139, 92, 246, 0.7));
  }
}

/* ============================================================
   LEGEND ADDITIONS
   ============================================================ */
.legend-dot.suggested {
  background: rgba(139, 92, 246, 0.2);
  border: 2px solid #8b5cf6;
}

.legend-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}

.legend-rack-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ============================================================
   SVG RACK ICON
   ============================================================ */
.table-rack-icon {
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  pointer-events: none;
  user-select: none;
  dominant-baseline: middle;
  text-anchor: end;
}