/* Neumorphism Dark & Glassmorphism Styling (menu-builder.css) */

:root {
  --bg-main: #121216;
  --bg-card: #16161c;
  --accent: #10b981;
  --accent-glow: rgba(16, 185, 129, 0.2);
  --border-light: rgba(255, 255, 255, 0.06);
  --text-primary: #f3f4f6;
  --text-muted: #9ca3af;
  --neumorphic-shadow: 6px 6px 12px #0a0a0d, -6px -6px 12px #1b1b22;
  --neumorphic-inner: inset 2px 2px 5px #0a0a0d, inset -2px -2px 5px #1b1b22;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  padding: 30px;
}

/* Page Header */
.page-header {
  max-width: 1200px;
  margin: 0 auto 30px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
}

.brand-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
}

.brand-title span {
  color: var(--accent);
}

/* Neumorphic Button */
.btn-neumorphic {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  box-shadow: var(--neumorphic-shadow);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-neumorphic:hover {
  transform: translateY(-2px);
  color: var(--accent);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-neumorphic:active {
  transform: translateY(0);
  box-shadow: var(--neumorphic-inner);
}

/* Grid Layout */
.menu-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
}

/* Left Sidebar: Categories Panel */
.sidebar-panel {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--neumorphic-shadow);
  border: 1px solid var(--border-light);
  height: fit-content;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-item {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--bg-main);
  box-shadow: var(--neumorphic-shadow);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  border: 1px solid transparent;
}

.category-item:hover, .category-item.active {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Catalog View */
.catalog-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Neumorphic Product Card */
.product-card {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-light);
  padding: 20px;
  box-shadow: var(--neumorphic-shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.product-img {
  width: 100%;
  height: 180px;
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
}

.product-info h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-info p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 16px;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}

/* Glassmorphic Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(18, 18, 22, 0.6);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: rgba(22, 22, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  width: 90%;
  max-width: 550px;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transform: translateY(30px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-header h3 {
  font-size: 22px;
  font-weight: 800;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--accent);
}

/* Form Styles */
.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input, .form-group textarea, .form-group select {
  background: rgba(18, 18, 22, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 14.5px;
  outline: none;
  transition: all 0.2s ease;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Loading & Heartbeat Animations */
.heartbeat-pulse {
  animation: heartbeat 1.2s infinite ease-in-out;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); box-shadow: 0 0 20px var(--accent); }
  100% { transform: scale(1); }
}

.spinner {
  border: 3px solid rgba(255, 255, 255, 0.1);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border-left-color: var(--accent);
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Elegant Toasts */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: rgba(22, 22, 28, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 16px 24px;
  color: var(--text-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  border-left: 5px solid var(--accent);
}

.toast.error {
  border-left-color: #ef4444;
}

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

/* Dynamic indicator */
.new-indicator {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #121216;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
  box-shadow: 0 0 10px var(--accent);
  animation: flash 1s alternate infinite;
}

@keyframes flash {
  from { opacity: 0.5; }
  to { opacity: 1; }
}
