* {
  font-family: 'Outfit', sans-serif;
}

body {
  box-sizing: border-box;
}

.venue-canvas {
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(148, 163, 184, 0.3) 1px,
    transparent 0
  );
  background-size: 24px 24px;
}

.draggable-item {
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.draggable-item:active {
  cursor: grabbing;
}

.placed-item {
  position: absolute;
  cursor: move;
  transition:
    box-shadow 0.2s,
    transform 0.1s;
}

.placed-item:hover {
  z-index: 100;
}

.placed-item.selected {
  box-shadow:
    0 0 0 3px #8b5cf6,
    0 0 16px rgba(139, 92, 246, 0.4) !important;
  z-index: 150;
}

.placed-item.search-highlight {
  box-shadow:
    0 0 0 4px #facc15,
    0 0 20px rgba(250, 204, 21, 0.5) !important;
  z-index: 200;
}

.item-toolbar {
  display: none;
  position: absolute;
  bottom: -38px;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: row;
  align-items: center;
  gap: 5px;
  z-index: 200;
  background: rgba(15, 23, 42, 0.88);
  padding: 4px 8px;
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.45);
  backdrop-filter: blur(6px);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  pointer-events: all;
}

.placed-item.selected .item-toolbar {
  display: flex;
}

.item-action-btn {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  display: flex;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  z-index: 50;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  transition:
    transform 0.15s,
    filter 0.15s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.item-action-btn:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}

.item-toolbar-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.resize-scale-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(139, 92, 246, 0.92);
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  pointer-events: none;
  z-index: 400;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
}

.table-group {
  position: relative;
}

.chair {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.chair:hover {
  transform: scale(1.15);
  z-index: 10;
}

.table-center {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: white;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.table-center:hover {
  transform: scale(1.05);
}

.stage {
  background: linear-gradient(135deg, #1e293b, #334155);
  border: 3px solid #475569;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.resize-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #8b5cf6;
  border: 2px solid white;
  border-radius: 3px;
  cursor: nwse-resize;
  z-index: 10;
  display: none !important;
}

.resize-handle.br {
  bottom: -7px;
  right: -7px;
}

.placed-item.selected .resize-handle {
  display: block !important;
}

.modal-overlay {
  backdrop-filter: blur(4px);
  z-index: 1000 !important;
}

.toast {
  animation:
    slideIn 0.3s ease-out,
    fadeOut 0.3s ease-in 2.7s forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

.palette-item {
  transition: all 0.2s;
}

.palette-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button {
  cursor: pointer;
  transition:
    transform 0.1s ease-in-out,
    filter 0.1s ease-in-out !important;
}

button:active {
  transform: scale(0.95) !important;
}

.scrollbar-thin {
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, 0.4) transparent;
}
.scrollbar-thin::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
.scrollbar-thin::-webkit-scrollbar-track {
  background: transparent;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
  background-color: rgba(100, 116, 139, 0.4);
  border-radius: 9999px;
}
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background-color: rgba(148, 163, 184, 0.6);
}
.scrollbar-thin::-webkit-scrollbar-button {
  display: none;
}
