/* Premium Restaurant System Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --bg-primary: #0a0807; /* Deep warm espresso charcoal background */
  --bg-secondary: #13100f; /* Warm coffee card background */
  --accent: #f97316;
  --accent-glow: rgba(249, 115, 22, 0.15);
  --accent-hover: #ea580c;
  --glass-bg: rgba(19, 16, 15, 0.75);
  --glass-border: rgba(255, 255, 255, 0.05);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: #f4f4f5;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Glassmorphism Styles */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

.glass-card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card-hover:hover {
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: 0 12px 40px 0 rgba(249, 115, 22, 0.08);
  transform: translateY(-4px);
}

.glass-nav {
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-b: 1px solid rgba(255, 255, 255, 0.05);
}

/* Glowing Elements */
.glow-accent {
  box-shadow: 0 0 30px 0 var(--accent-glow);
}

.glow-text {
  text-shadow: 0 0 12px rgba(249, 115, 22, 0.5);
}

/* Scrollbar customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #09090b;
}

::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 999px;
}

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

/* Skeleton loader anim */
@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    background-color: rgba(39, 39, 42, 0.5);
  }
  50% {
    opacity: 0.5;
    background-color: rgba(63, 63, 70, 0.3);
  }
}

.skeleton-item {
  animation: pulse-glow 1.5s ease-in-out infinite;
}

/* Status colors */
.status-available {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-reserved {
  background-color: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-occupied {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Grid system for designer layout */
.designer-grid {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

/* Toast animations */
@keyframes slide-in-up {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.toast-animate {
  animation: slide-in-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Rotate and handle selectors for designer */
.rotation-handle {
  cursor: grab;
}
.rotation-handle:active {
  cursor: grabbing;
}

.resize-handle {
  width: 10px;
  height: 10px;
  background-color: #f97316;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  position: absolute;
}

/* Button hover ripple effect mimicking custom GSAP style */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease-out;
  pointer-events: none;
}

.btn-ripple:active::after {
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0s;
}
