/* Custom Styles for Chinese Banquet Booking System (Pink-Purple Theme & Responsive) */

/* Smooth touch action on mobile */
html, body {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Navigation Active State */
.nav-item.active {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(168, 85, 247, 0.25));
  color: #fdf2f8;
  border-bottom: 2px solid #ec4899;
}

.zone-filter-btn.active {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.35);
}

/* Floor Plan SVG Styling */
#hall-svg {
  filter: drop-shadow(0 12px 30px rgba(76, 29, 149, 0.12));
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

/* Table SVG Node Interactive Styles */
.table-node {
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
  transform-origin: center;
}

/* สถานะเมื่อนำเมาส์ไปวางบนโต๊ะ (นิ่ง เสถียร สวยงาม ไม่กระพริบ ไม่กระตุก) */
.table-node {
  cursor: pointer;
  transition: filter 0.15s ease-out;
}

.table-node:hover {
  /* เรืองแสงสีชมพู-ม่วงอย่างนุ่มนวล โดยไม่ขยับพิกัด SVG ให้สั่นหรือกระตุก */
  filter: drop-shadow(0 0 6px rgba(236, 72, 153, 0.9)) drop-shadow(0 0 12px rgba(168, 85, 247, 0.7));
}

.table-node:hover circle.table-main {
  stroke: #FFFFFF;
  stroke-width: 3px;
}

.table-node.status-available circle.table-main {
  fill: #10B981;
  stroke: #059669;
  stroke-width: 2.2;
}

.table-node.status-pending circle.table-main {
  fill: #F59E0B;
  stroke: #D97706;
  stroke-width: 2.2;
  animation: pendingPulse 1.8s infinite ease-in-out;
}

.table-node.status-approved circle.table-main {
  fill: #E11D48;
  stroke: #BE123C;
  stroke-width: 2.2;
  cursor: not-allowed;
}

.table-node.status-blocked circle.table-main {
  fill: #94A3B8;
  stroke: #64748B;
  stroke-width: 2;
  cursor: not-allowed;
}

/* Chair Dots Around Table (8 chairs per table) */
.chair-dot {
  fill: #FFFFFF;
  stroke-width: 1.2;
}

.table-node.status-available .chair-dot {
  stroke: #059669;
}

.table-node.status-pending .chair-dot {
  stroke: #D97706;
}

.table-node.status-approved .chair-dot {
  stroke: #BE123C;
}

.table-node.status-blocked .chair-dot {
  stroke: #64748B;
}

/* Table Text */
.table-text {
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-size: 10px;
  font-weight: 700;
  fill: #FFFFFF;
  pointer-events: none;
  text-anchor: middle;
  dominant-baseline: central;
}

/* Animations */
@keyframes pendingPulse {
  0%, 100% {
    filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.95));
  }
}

/* Highlight Selected Table */
.table-node.highlight-table {
  animation: highlightBounce 0.9s infinite alternate ease-in-out;
}

@keyframes highlightBounce {
  0% {
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px #EC4899);
  }
  100% {
    transform: scale(1.4);
    filter: drop-shadow(0 0 18px #A855F7);
  }
}

/* Tooltip for Tables */
#map-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 100;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
  transform: translate(-50%, -120%);
  border-color: rgba(236, 72, 153, 0.4);
}

/* Hide scrollbar for clean horizontal scrolls on mobile */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Mobile responsive touch targets */
@media (max-width: 640px) {
  button, input, select {
    min-height: 42px;
  }
  .zone-filter-btn {
    min-height: 34px;
  }
}

/* Scrollbar beautification */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #fdf2f8;
}

::-webkit-scrollbar-thumb {
  background: #f472b6;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ec4899;
}
