/* Base */
* { box-sizing: border-box; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; }

/* Step dots */
.step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}
.step-dot.active { background: #f59e0b; color: #fff; }
.step-dot.done { background: #10b981; color: #fff; }
.step-line { height: 2px; background: #e5e7eb; transition: background 0.3s; }
.step-line.done { background: #10b981; }

/* Inputs */
.label { display: block; font-size: 0.875rem; font-weight: 600; color: #374151; margin-bottom: 6px; }
.input-field {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid #e5e7eb; border-radius: 10px;
  font-size: 0.9rem; color: #111827;
  background: #fff; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input-field:focus { border-color: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.12); }
.input-field.error { border-color: #ef4444; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: 10px;
  background: #f59e0b; color: #fff;
  font-weight: 700; font-size: 0.9rem;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: #d97706; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { background: #d1d5db; cursor: not-allowed; }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: 10px;
  background: #f3f4f6; color: #374151;
  font-weight: 700; font-size: 0.9rem;
  border: none; cursor: pointer;
  transition: background 0.2s;
}
.btn-secondary:hover { background: #e5e7eb; }

.btn-danger {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 16px; border-radius: 8px;
  background: #fee2e2; color: #dc2626;
  font-weight: 600; font-size: 0.85rem;
  border: none; cursor: pointer;
  transition: background 0.2s;
}
.btn-danger:hover { background: #fecaca; }

/* Area radio cards */
.area-radio { flex: 1; cursor: pointer; }
.area-card {
  border: 2px solid #e5e7eb; border-radius: 12px;
  padding: 16px; display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  transition: border-color 0.2s, background 0.2s;
}
.area-radio input:checked + .area-card {
  border-color: #f59e0b; background: #fffbeb;
}

/* Table SVG nodes */
.table-node { cursor: pointer; transition: all 0.15s; }
.table-node:hover rect, .table-node:hover circle { filter: brightness(0.92); }
.table-node.suggested rect, .table-node.suggested circle { fill: #86efac; stroke: #16a34a; }
.table-node.available rect, .table-node.available circle { fill: #fef3c7; stroke: #d97706; }
.table-node.booked rect, .table-node.booked circle { fill: #e5e7eb; stroke: #9ca3af; cursor: not-allowed; }
.table-node.selected rect, .table-node.selected circle { fill: #f59e0b; stroke: #b45309; }

/* Admin kanban */
.kanban-col { min-width: 220px; }
.kanban-card {
  background: #fff; border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 12px; margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  cursor: grab;
}
.kanban-card:active { cursor: grabbing; }

/* Status badges */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600;
}
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-confirmed { background: #dbeafe; color: #1e40af; }
.badge-arrived { background: #d1fae5; color: #065f46; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }

/* Notification toast */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: #1f2937; color: #fff;
  padding: 14px 20px; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  display: flex; align-items: center; gap: 12px;
  z-index: 9999; max-width: 340px;
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Sidebar */
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 10px;
  color: #d1d5db; font-size: 0.9rem; font-weight: 500;
  text-decoration: none; transition: all 0.2s;
}
.sidebar-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.sidebar-link.active { background: #f59e0b; color: #fff; }

/* Floor plan editor toolbar */
.floor-tool-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; font-size: 12px; font-weight: 600;
  border-radius: 8px; border: 1.5px solid #e5e7eb;
  background: #fff; color: #374151; cursor: pointer;
  transition: all .15s;
}
.floor-tool-btn:hover { background: #f3f4f6; border-color: #d1d5db; }
.floor-tool-btn.active { background: #fef3c7; border-color: #f59e0b; color: #92400e; }

/* SVG floor canvas */
.floor-canvas-wrap { overflow-x: auto; overflow-y: auto; }
.floor-svg { min-width: 600px; }
.floor-svg.tool-wall { cursor: crosshair !important; }
.floor-svg.tool-erase { cursor: not-allowed !important; }
.floor-svg.tool-select { cursor: default !important; }

/* SVG table elements */
.svg-table { cursor: move; user-select: none; }
.svg-table rect, .svg-table circle { stroke-width: 2; transition: filter .1s; }
.svg-table:hover rect, .svg-table:hover circle { filter: brightness(0.93); }
.svg-table.selected rect, .svg-table.selected circle {
  stroke: #3b82f6 !important; stroke-width: 3;
  filter: drop-shadow(0 0 4px #3b82f6aa);
}
.svg-table.smoking rect, .svg-table.smoking circle { fill: #fef3c7; stroke: #f59e0b; }
.svg-table.non-smoking rect, .svg-table.non-smoking circle { fill: #d1fae5; stroke: #10b981; }

/* Wall lines */
.wall-line {
  stroke: #374151; stroke-width: 3; stroke-linecap: round;
  cursor: pointer; transition: stroke .15s;
}
.wall-line:hover { stroke: #ef4444; stroke-width: 4; }
.wall-line.erase-mode { cursor: pointer; }
.wall-preview-line { stroke: #6b7280; stroke-width: 2; stroke-dasharray: 6 4; stroke-linecap: round; pointer-events: none; }
.wall-snap-dot { fill: #f59e0b; pointer-events: none; }

/* Responsive */
@media (max-width: 640px) {
  .kanban-col { min-width: 160px; }
}
