/* ============= USER PAGE STYLES ============= */

/* Dish card */
.dish-card {
  transition: all 0.2s ease;
}

.dish-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #a78bfa !important;
}

.dish-card:active {
  transform: scale(0.98);
}

/* Order items */
.order-item {
  transition: all 0.2s ease;
}

.order-item:hover {
  background-color: #f3f4f6;
}

.order-item.sent {
  background-color: #f0fdf4;
  border-left: 4px solid #22c55e;
}

.order-item.pending {
  background-color: #fef3c7;
  border-left: 4px solid #f59e0b;
}

/* Kitchen warning */
.kitchen-warning {
  animation: pulse 2s infinite;
}

/* Stats cards */
.stat-item {
  transition: all 0.2s ease;
}

.stat-item:hover {
  transform: scale(1.02);
}

/* History section */
.history-day {
  border-left: 3px solid #e5e7eb;
  padding-left: 12px;
  margin-left: 4px;
}

.history-day.today {
  border-left-color: #8b5cf6;
}

/* Payment status badges */
.badge-pending {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-approved {
  background-color: #d1fae5;
  color: #065f46;
}

/* QR Modal */
.qr-modal-backdrop {
  backdrop-filter: blur(4px);
}

.qr-code-container {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 8px;
}

/* Custom dish input */
.custom-dish-section {
  border-top: 2px dashed #e5e7eb;
  margin-top: 16px;
  padding-top: 16px;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.syncing::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #8b5cf6;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Mobile optimizations */
@media (max-width: 640px) {
  .dish-card {
    padding: 12px;
  }
  
  .stat-item {
    padding: 12px;
  }
}

/* Delete button */
.delete-btn {
  opacity: 0.5;
  transition: all 0.2s ease;
}

.delete-btn:hover {
  opacity: 1;
  color: #dc2626;
  transform: scale(1.1);
}

/* Menu badge (order count) */
.menu-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  color: white;
  font-size: 11px;
  font-weight: 600;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}
