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

:root {
  --primary-color: #ff6b6b;
  --primary-hover: #ff5252;
  --bg-gradient-start: #f8f9fa;
  --bg-gradient-end: #e9ecef;
  --text-dark: #2d3436;
  --text-light: #636e72;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  --border-radius: 16px;
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  color: var(--text-dark);
  min-height: 100vh;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 100%;
  max-width: 500px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 80vh;
}

.staff-container {
    max-width: 800px;
}

header {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: rgba(255,255,255,0.5);
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 5px;
}

p.subtitle {
  font-size: 0.9rem;
  color: var(--text-light);
}

.menu-list, .order-list {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: white;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: var(--transition);
}

.menu-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.05);
}

.item-info h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.item-price {
  color: var(--primary-color);
  font-weight: 600;
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

button {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

button:hover {
  background: var(--primary-hover);
}

button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.qty-btn {
  background: #f1f2f6;
  color: var(--text-dark);
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
}

.qty-btn:hover {
  background: #dfe4ea;
}

.qty-display {
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.cart-summary {
  padding: 20px;
  background: white;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.checkout-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
  border-radius: 12px;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.toast {
  background: white;
  color: var(--text-dark);
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(120%);
  animation: slideIn 0.3s forwards;
  border-left: 4px solid var(--primary-color);
}

@keyframes slideIn {
  to { transform: translateX(0); }
}

@keyframes slideOut {
  to { transform: translateX(120%); }
}

/* Staff specific */
.order-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.order-items {
    margin-bottom: 15px;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.status-actions {
    display: flex;
    gap: 10px;
}

.status-btn {
    flex: 1;
}

.btn-preparing {
    background-color: #f39c12;
}
.btn-preparing:hover { background-color: #e67e22; }

.btn-done {
    background-color: #2ecc71;
}
.btn-done:hover { background-color: #27ae60; }

.status-badge {
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.badge-pending { background: #ffeaa7; color: #d63031; }
.badge-preparing { background: #ffeaa7; color: #e17055; }
.badge-done { background: #55efc4; color: #00b894; }

/* Status Overlay for Customer */
.status-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.status-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.status-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.status-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.status-subtext {
    color: var(--text-light);
}
