/* CSS Mobile First para Garçom Mobile */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
  background: #0b1120;
  color: #f8fafc;
  min-height: 100vh;
}

.waiter-app {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
  padding-bottom: 80px;
}

.waiter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ea580c;
}

.waiter-badge {
  font-size: 0.8rem;
  color: #94a3b8;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #34d399;
  font-weight: 600;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-title-row h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.tables-count {
  background: rgba(234, 88, 12, 0.2);
  color: #fb923c;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.tables-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.table-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
}

.table-card:hover {
  transform: translateY(-2px);
  border-color: #ea580c;
}

.table-card.occupied {
  border-color: rgba(234, 88, 12, 0.4);
  background: rgba(234, 88, 12, 0.1);
}

.table-card.bill_requested {
  border-color: rgba(245, 158, 11, 0.6);
  background: rgba(245, 158, 11, 0.15);
}

.table-num {
  font-size: 1.3rem;
  font-weight: 800;
  color: #f8fafc;
}

.table-status-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 4px;
}

.table-status-pill.free { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.table-status-pill.occupied { background: rgba(234, 88, 12, 0.2); color: #fb923c; }
.table-status-pill.bill_requested { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }

.table-total {
  font-size: 1rem;
  font-weight: 700;
  color: #10b981;
  margin-top: 8px;
}

/* Bottom Sheet */
.bottom-sheet {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
}

.bottom-sheet.open {
  display: flex;
}

.sheet-content {
  background: #1e293b;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
}

.sheet-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.8rem;
  cursor: pointer;
}

.bill-summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0f172a;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 1rem;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bill-summary-bar strong {
  font-size: 1.3rem;
  color: #10b981;
}

.consumed-items-list {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
  max-height: 180px;
  overflow-y: auto;
}

.consumed-item-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

.add-items-section {
  background: rgba(15, 23, 42, 0.8);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.add-items-section h4 {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.product-selector-row {
  display: grid;
  grid-template-columns: 1fr 70px;
  gap: 8px;
  margin-bottom: 10px;
}

.sheet-input, .sheet-select, .sheet-input-qty {
  width: 100%;
  padding: 10px;
  background: #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #f8fafc;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.btn-sheet-primary, .btn-sheet-secondary, .btn-sheet-warning, .btn-sheet-success {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  margin-bottom: 8px;
}

.btn-sheet-primary { background: #ea580c; color: #fff; }
.btn-sheet-secondary { background: #3b82f6; color: #fff; }
.btn-sheet-warning { background: #f59e0b; color: #000; }
.btn-sheet-success { background: #10b981; color: #fff; }

.sheet-footer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
