/* The Str Spa - Dark Tech Sport & Champagne Gold Theme */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Noto+Sans+TC:wght@300;400;500;700;900&display=swap');

:root {
  --bg-main: #070a12;
  --bg-card: #0f172a;
  --bg-card-hover: #1e293b;
  --bg-surface: #131d33;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #3b82f6;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-blue: #38bdf8;
  --accent-gold: #eab308;
  --brand-line: #06C755;
  --brand-line-hover: #05b04a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans TC', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(234, 179, 8, 0.05) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Glassmorphism Card */
.glass-card {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  border-radius: 20px;
}

.glass-card-interactive {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card-interactive:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -10px rgba(37, 99, 235, 0.2);
}

/* Time Grid Timeline (Muscle.com.tw style) */
.timeline-grid {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.timeline-hour-mark {
  position: relative;
  height: 54px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.slot-box {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.slot-box:hover {
  border-color: #60a5fa;
  background: rgba(37, 99, 235, 0.25);
  transform: scale(1.02);
}

.slot-box.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(14, 165, 233, 0.9)) !important;
  border-color: #93c5fd !important;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
  color: #ffffff !important;
  font-weight: 700;
}

.slot-box.locked {
  background: rgba(15, 23, 42, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.04) !important;
  color: rgba(148, 163, 184, 0.3) !important;
  cursor: not-allowed !important;
  text-decoration: line-through;
  pointer-events: none;
}

/* Step Wizard Progress */
.step-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.step-node.completed {
  background: #3b82f6;
  color: #fff;
}

.step-node.current {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
  outline: 3px solid rgba(59, 130, 246, 0.3);
}

.step-node.pending {
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}

/* LINE Send Button */
.btn-line-dispatch {
  background: linear-gradient(135deg, #06C755, #05b04a);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(6, 199, 85, 0.35);
  transition: all 0.3s ease;
}

.btn-line-dispatch:hover {
  box-shadow: 0 12px 30px rgba(6, 199, 85, 0.5);
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* Photo snap carousel */
.snap-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.snap-carousel::-webkit-scrollbar {
  display: none;
}
.snap-carousel > * {
  scroll-snap-align: center;
  flex-shrink: 0;
}

/* Dots */
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}
.dot.active {
  width: 18px;
  border-radius: 4px;
  background: #ffffff;
}

/* Modal animation */
.modal-backdrop {
  animation: fadeIn 0.25s ease-out forwards;
}
.modal-content {
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
