:root {
  --bbq-charcoal: #353A3D;
  --bbq-red: #841617;
  --bbq-cream: #FDF9D8;
  --bbq-white: #FFFFFF;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { background: var(--bbq-charcoal); color: var(--bbq-cream); min-height: 100vh; display: flex; flex-direction: column; }
header { background: var(--bbq-red); padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.brand-left { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 64px; height: 64px; background: var(--bbq-cream); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--bbq-red); font-size: 22px; flex-shrink: 0; }
.brand-text h1 { font-size: 20px; font-weight: 800; letter-spacing: 0.05em; color: var(--bbq-cream); }
.brand-text p { font-size: 12px; opacity: 0.9; color: var(--bbq-cream); }
.nav-links { display: flex; gap: 8px; }
.nav-link { padding: 8px 16px; border-radius: 8px; background: rgba(0,0,0,0.2); color: var(--bbq-cream); text-decoration: none; font-size: 14px; font-weight: 600; transition: all 0.3s; }
.nav-link:hover { background: rgba(0,0,0,0.4); }
.nav-link.active { background: rgba(0,0,0,0.4); border-bottom: 2px solid var(--bbq-cream); }
.status-pill { background: rgba(0,0,0,0.25); border-radius: 999px; padding: 6px 14px; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; color: var(--bbq-cream); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #3bd16f; }
main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 16px; max-width: 1200px; width: 100%; margin: 0 auto; }
.card { background: rgba(0,0,0,0.35); border-radius: 16px; padding: 16px; box-shadow: 0 8px 20px rgba(0,0,0,0.4); }
.card-title { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--bbq-cream); opacity: 0.8; margin-bottom: 12px; }
.search-card { width: 100%; }
.search-container { position: relative; display: flex; align-items: center; }
#searchInput { width: 100%; padding: 12px 40px 12px 15px; font-size: 16px; border: 2px solid rgba(253, 249, 216, 0.2); border-radius: 8px; outline: none; background: rgba(0,0,0,0.3); color: var(--bbq-cream); }
#searchInput::placeholder { color: rgba(253, 249, 216, 0.5); }
#searchInput:focus { border-color: var(--bbq-red); background: rgba(0,0,0,0.4); }
.btn-clear { position: absolute; right: 10px; background: var(--bbq-red); color: var(--bbq-cream); border: none; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; font-size: 14px; transition: all 0.3s; }
.btn-clear:hover { background: #a01819; transform: scale(1.1); }
.actions-card { width: 100%; }
.btn { padding: 10px 20px; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; transition: all 0.3s; text-transform: uppercase; letter-spacing: 0.05em; }
.btn-primary { background: var(--bbq-cream); color: var(--bbq-red); }
.btn-primary:hover { background: #f5f1c8; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(253, 249, 216, 0.4); }
.btn-secondary { background: rgba(255,255,255,0.1); color: var(--bbq-cream); }
.btn-secondary:hover { background: rgba(255,255,255,0.15); }
.btn-print { background: var(--bbq-red); color: var(--bbq-cream); padding: 8px 16px; font-size: 13px; margin-top: 8px; }
.btn-print:hover { background: #a01819; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(132, 22, 23, 0.4); }
.btn-danger { background: #c82333; color: var(--bbq-cream); }
.btn-danger:hover { background: #bd2130; }
.items-card { width: 100%; }
.items-list { display: flex; flex-direction: column; gap: 12px; min-height: 300px; }
.item { padding: 16px 20px; border-left: 4px solid var(--bbq-red); background: rgba(0,0,0,0.25); border-radius: 8px; cursor: pointer; transition: all 0.3s; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.item:hover { background: rgba(132, 22, 23, 0.2); transform: translateX(5px); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
.item-info { flex: 1; }
.item-name { font-size: 18px; font-weight: 700; color: var(--bbq-cream); margin-bottom: 6px; letter-spacing: 0.02em; }
.item-description { color: rgba(253, 249, 216, 0.7); font-size: 14px; line-height: 1.4; }
.item-price { font-size: 24px; font-weight: 800; color: var(--bbq-red); min-width: 100px; text-align: right; background: rgba(132, 22, 23, 0.1); padding: 8px 16px; border-radius: 8px; }
.loading { text-align: center; color: rgba(253, 249, 216, 0.6); padding: 40px; font-size: 16px; }
.no-items { text-align: center; color: rgba(253, 249, 216, 0.5); padding: 60px 20px; font-size: 16px; }
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content { margin: 5% auto; max-width: 500px; animation: slideDown 0.3s; }
@keyframes slideDown { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close { color: var(--bbq-cream); float: right; font-size: 28px; font-weight: bold; cursor: pointer; line-height: 20px; opacity: 0.7; }
.close:hover { opacity: 1; }
#modalTitle { margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--bbq-cream); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
.form-group input, .form-group textarea { width: 100%; padding: 10px; border: 2px solid rgba(253, 249, 216, 0.2); border-radius: 8px; font-size: 14px; transition: all 0.3s; background: rgba(0,0,0,0.3); color: var(--bbq-cream); }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(253, 249, 216, 0.5); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--bbq-red); background: rgba(0,0,0,0.4); }
.form-actions { display: flex; gap: 10px; margin-top: 25px; }
.form-actions .btn { flex: 1; }
.form-section { background: rgba(255,255,255,0.05); border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.section-title { font-size: 18px; font-weight: 700; color: var(--bbq-red); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--bbq-red); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 16px; }
.form-group.full-width { grid-column: 1 / -1; }
.switch-container { display: flex; align-items: center; gap: 60px; }
.switch-label { display: inline-flex; align-items: center; cursor: pointer; }
.switch-text { font-weight: 600; }
.switch-label input[type="checkbox"] { display: none; }
.switch-slider { position: relative; width: 50px; height: 24px; background: var(--bbq-red); border-radius: 24px; transition: 0.3s; flex-shrink: 0; }
.switch-slider::after { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: var(--bbq-cream); border-radius: 50%; transition: 0.3s; }
input[type="checkbox"]:checked + .switch-slider { background: var(--bbq-cream); }
input[type="checkbox"]:checked + .switch-slider::after { transform: translateX(26px); background: var(--bbq-red); }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(255,255,255,0.05); border-radius: 6px; cursor: pointer; transition: 0.3s; }
.checkbox-label:hover { background: rgba(255,255,255,0.1); }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }
.meats-section { margin-top: 16px; }
.meats-title { display: block; font-weight: 700; color: var(--bbq-red); margin-bottom: 12px; font-size: 16px; }
.desserts-section { margin-top: 16px; }
.desserts-title { display: block; font-weight: 700; color: var(--bbq-red); margin-bottom: 12px; font-size: 16px; }
.sides-section { margin-top: 16px; }
.sides-title { display: block; font-weight: 700; color: var(--bbq-red); margin-bottom: 12px; font-size: 16px; }
.fixins-section { margin-top: 16px; }
.fixins-title { display: block; font-weight: 700; color: var(--bbq-red); margin-bottom: 12px; font-size: 16px; }
.dishes-section { margin-top: 16px; }
.dishes-title { display: block; font-weight: 700; color: var(--bbq-red); margin-bottom: 12px; font-size: 16px; }
.search-results { max-height: 200px; overflow-y: auto; background: rgba(0,0,0,0.3); border-radius: 6px; margin-top: 8px; }
.search-result-item { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.1); cursor: pointer; transition: 0.3s; display: flex; justify-content: space-between; }
.search-result-item:hover { background: rgba(255,255,255,0.1); }
.selected-items { margin-top: 16px; }
.selected-item { display: flex; justify-content: space-between; align-items: center; padding: 12px; background: rgba(0,0,0,0.3); border-radius: 6px; margin-bottom: 8px; gap: 12px; }
.selected-item-name { font-weight: 600; flex: 1; }
.item-unit-price { color: rgba(253, 249, 216, 0.6); font-size: 13px; min-width: 70px; text-align: right; }
.quantity-controls { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 28px; height: 28px; border: none; border-radius: 4px; background: var(--bbq-red); color: var(--bbq-cream); font-size: 16px; font-weight: 700; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: #a01819; }
.quantity { min-width: 30px; text-align: center; font-weight: 700; color: var(--bbq-cream); }
.item-price-input { width: 90px; padding: 6px 8px; background: rgba(0,0,0,0.3); color: var(--bbq-red); border: 2px solid rgba(253, 249, 216, 0.2); border-radius: 6px; font-weight: 700; font-size: 14px; text-align: right; }
.item-price-input:focus { outline: none; border-color: var(--bbq-red); background: rgba(0,0,0,0.4); }
.selected-item-price { color: var(--bbq-red); font-weight: 700; min-width: 80px; text-align: right; }
.remove-item-btn { padding: 4px 8px; background: var(--bbq-red); color: var(--bbq-cream); border: none; border-radius: 4px; cursor: pointer; transition: 0.3s; }
.remove-item-btn:hover { background: #bd2130; }
.order-total-breakdown { margin-top: 24px; padding: 16px; background: rgba(0,0,0,0.3); border-radius: 8px; border: 2px solid var(--bbq-red); }
.total-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(253, 249, 216, 0.2); }
.total-row:last-child { border-bottom: none; }
.total-label { font-size: 16px; color: var(--bbq-cream); font-weight: 500; }
.total-value { font-size: 16px; color: var(--bbq-cream); font-weight: 600; }
.total-final { margin-top: 8px; padding-top: 16px; border-top: 2px solid var(--bbq-red); border-bottom: none; }
.total-final .total-label { font-size: 20px; font-weight: 700; color: var(--bbq-red); }
.total-value-final { font-size: 24px; font-weight: 700; color: var(--bbq-red); }
.delivery-address { display: none; }
.delivery-address.show { display: block; }
.orders-list { display: flex; flex-direction: column; gap: 12px; min-height: 300px; }
.order-item { padding: 16px 20px; border-left: 4px solid var(--bbq-red); background: rgba(0,0,0,0.25); border-radius: 8px; cursor: pointer; transition: all 0.3s; }
.order-item:hover { background: rgba(132, 22, 23, 0.2); transform: translateX(5px); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
.order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.order-customer { font-size: 18px; font-weight: 700; color: var(--bbq-cream); }
.order-date { font-size: 14px; color: rgba(253, 249, 216, 0.7); }
.order-details { font-size: 14px; color: rgba(253, 249, 216, 0.7); margin-bottom: 4px; }
.order-total-display { font-size: 20px; font-weight: 700; color: var(--bbq-red); text-align: right; margin-top: 8px; }
.order-modal { max-width: 800px; max-height: 90vh; overflow-y: auto; }
@media (max-width: 768px) {
  header { padding: 12px; }
  .brand-logo { width: 48px; height: 48px; font-size: 18px; }
  .brand-text h1 { font-size: 16px; }
  .brand-text p { font-size: 11px; }
  main { padding: 12px; }
  .item { flex-direction: column; align-items: flex-start; }
  .item-price { text-align: left; width: 100%; }
  .modal-content { margin: 20% auto; }
  .form-row { grid-template-columns: 1fr; }
  .order-modal { max-width: 95%; }
}
