@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #ff6a00;
  --primary-hover: #e65c00;
  --secondary: #1a1a2e;
  --accent: #e94560;
  --bg-color: #f4f7f6;
  --text-dark: #2c3e50;
  --text-muted: #7f8c8d;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow-soft: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  --shadow-hover: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  padding-top: 80px; /* Space for fixed navbar */
  min-height: 100vh;
}

/* Glassmorphism Navbar */
.navbar-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  padding: 0.8rem 1rem;
}

.navbar-glass .navbar-brand {
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-glass .nav-link {
  font-weight: 500;
  color: var(--text-dark);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: var(--transition);
  margin: 0 5px;
}

.navbar-glass .nav-link:hover,
.navbar-glass .nav-link.active {
  background-color: rgba(255, 106, 0, 0.1);
  color: var(--primary);
}

/* Modern Cards */
.modern-card {
  background: white;
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  overflow: hidden;
}

.modern-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* Table Cards */
.table-card {
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: 1px solid transparent;
  background: white;
  box-shadow: var(--shadow-soft);
  height: 100%;
  padding: 1.25rem;
  outline: none;
  position: relative;
  overflow: hidden;
}

.table-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: #ccc;
}

.table-card.available::before { background: #28a745; }
.table-card.occupied::before { background: #dc3545; }
.table-card.reserved::before { background: #ffc107; }

.table-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-hover);
}

.table-card:focus,
.table-card.selected {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.2);
}

/* Product Cards */
.product-card {
  cursor: pointer;
  border-radius: 12px;
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.product-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
}

.product-card.border-success {
  border-width: 2px !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 12px rgba(255, 106, 0, 0.3);
}

.product-card img {
  width: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover img {
  transform: scale(1.05);
}

/* Cart & Sidebar */
.sticky-sidebar {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  border: none;
}

.sticky-sidebar::-webkit-scrollbar {
  width: 6px;
}
.sticky-sidebar::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.cart-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background 0.2s;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item.highlight {
  background-color: rgba(255, 106, 0, 0.05);
  border-left: 3px solid var(--primary);
  padding-left: 10px;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
  transition: var(--transition);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: white;
}

.btn-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #e94560 100%);
  border: none;
  color: white;
  transition: var(--transition);
}

.btn-gradient:hover {
  box-shadow: 0 6px 15px rgba(233, 69, 96, 0.4);
  transform: translateY(-2px);
  color: white;
}

/* Order Cards */
.order-card {
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--border-radius);
  border: none;
  box-shadow: var(--shadow-soft);
  outline: none;
}

.order-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.order-card.border-success {
  border: 2px solid var(--primary) !important;
  box-shadow: 0 0 15px rgba(255, 106, 0, 0.2);
}

/* Forms */
.form-control, .form-select {
  border-radius: 8px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0,0,0,0.1);
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(255, 106, 0, 0.25);
}

/* Auth Pages */
.auth-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../images/login_food.webp') no-repeat center center/cover;
  position: relative;
}

.auth-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.auth-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  padding: 3rem;
  width: 100%;
  max-width: 450px;
  position: relative;
  z-index: 10;
}

/* Utilities */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }

/* Dashboard Quick Stats */
.stat-card {
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background: white;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

/* Tables */
.table {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.table thead th {
  background-color: var(--secondary);
  color: white;
  border: none;
  padding: 1rem;
}

.table tbody td {
  padding: 1rem;
  vertical-align: middle;
}
