/* CSS RESET & THEME STYLES - BAR & RESTAURANT INVENTORY WITH EXECUTIVE SIDEBAR */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --bg-dark: #030712;
  --card-dark: #111827;
  --border-dark: #1f2937;
  --accent-emerald: #10b981;
  --accent-teal: #14b8a6;
  --accent-amber: #f59e0b;
  --accent-indigo: #6366f1;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: #f3f4f6;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.font-display {
  font-family: 'Outfit', system-ui, sans-serif;
}

/* Header & Glassmorphism */
.app-header {
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Sidebar Navigation Elements */
#app-sidebar {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item {
  position: relative;
  transition: all 0.2s ease;
}

.nav-item.active {
  background-color: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #ffffff;
  box-shadow: 0 4px 12px -2px rgba(16, 185, 129, 0.2);
}

.nav-item.active i {
  color: #34d399 !important;
}

/* Keypad Button Styling */
.btn-keypad {
  height: 3.5rem;
  border-radius: 1rem;
  background-color: rgba(31, 41, 55, 0.9);
  border: 1px solid rgba(55, 65, 81, 1);
  color: #f9fafb;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  user-select: none;
}

.btn-keypad:hover {
  background-color: rgba(55, 65, 81, 1);
  transform: translateY(-1px);
}

.btn-keypad:active {
  transform: scale(0.95);
  background-color: rgba(17, 24, 39, 1);
}

/* PIN Dots */
.pin-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  border: 2px solid #374151;
  background-color: #1f2937;
  transition: all 0.2s ease;
}

.pin-dot.active {
  background-color: #34d399;
  border-color: #6ee7b7;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.6);
  transform: scale(1.15);
}

/* Product Cards & Touch Controls */
.product-card {
  background-color: #111827;
  border: 1px solid #1f2937;
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.product-card:hover {
  border-color: #374151;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

.product-card.counted {
  border-color: rgba(52, 211, 153, 0.4);
  background-color: rgba(17, 24, 39, 0.95);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.2);
}

/* Category Chips */
.category-chip {
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: #111827;
  border: 1px solid #1f2937;
  color: #9ca3af;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-chip:hover {
  background-color: #1f2937;
  color: #f3f4f6;
}

.category-chip.active {
  background-color: #059669;
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

/* Area Tabs */
.area-tab {
  cursor: pointer;
  user-select: none;
}

.area-tab.active {
  background-color: #0d9488;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

/* Shift Type Buttons */
.shift-type-btn {
  cursor: pointer;
  user-select: none;
}

.shift-type-btn.active {
  background-color: #1f2937;
  color: #ffffff;
  border: 1px solid #374151;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Light Theme Overrides */
body.light-theme {
  background-color: #f8fafc;
  color: #0f172a;
}

body.light-theme #app-container {
  background-color: #f8fafc;
}

body.light-theme #app-sidebar {
  background-color: #ffffff;
  border-color: #e2e8f0;
}

body.light-theme #sidebar-brand-name {
  color: #0f172a;
}

body.light-theme .nav-item {
  color: #475569;
}

body.light-theme .nav-item:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

body.light-theme .nav-item.active {
  background-color: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.4);
  color: #065f46;
}

body.light-theme .app-header {
  background-color: rgba(255, 255, 255, 0.9);
  border-color: #e2e8f0;
}

body.light-theme #page-title-display {
  color: #0f172a;
}

body.light-theme #page-subtitle-display {
  color: #64748b;
}

body.light-theme .product-card {
  background-color: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

body.light-theme .product-card:hover {
  border-color: #cbd5e1;
}

body.light-theme .product-card h4 {
  color: #0f172a;
}

body.light-theme .product-card.counted {
  background-color: #f0fdf4;
  border-color: #86efac;
}

body.light-theme .category-chip {
  background-color: #ffffff;
  border-color: #e2e8f0;
  color: #475569;
}

body.light-theme .category-chip.active {
  background-color: #059669;
  color: #ffffff;
}

body.light-theme .bg-gray-900 {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
}

body.light-theme .bg-gray-950 {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

body.light-theme .text-white {
  color: #0f172a !important;
}

body.light-theme .text-gray-300,
body.light-theme .text-gray-400 {
  color: #475569 !important;
}

body.light-theme table thead {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.animate-fade-in {
  animation: fadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(156, 163, 175, 0.2);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(156, 163, 175, 0.4);
}
