/* ========================================
   DELIVERYWOO INTERACTIVE DEMO - STYLES
   ======================================== */

:root {
  --primary: #3b7b2b;
  --primary-dark: #2c5e20;
  --secondary: #5c3b27;
  --accent: #D4AF37;
  --danger: #dc3545;
  --success: #28a745;
  --warning: #ffc107;
  --info: #17a2b8;
  --light: #f8f9fa;
  --white: #ffffff;
  --dark: #333333;
  --gray: #6c757d;
  --gray-light: #e9ecef;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
}

/* ========================================
   HEADER
   ======================================== */

.demo-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 20px 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.demo-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.8rem;
  font-weight: 800;
}

.demo-logo .icon {
  font-size: 2.5rem;
}

.demo-badge {
  background: rgba(255,255,255,0.2);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.header-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.btn {
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
}

/* ========================================
   DASHBOARD CONTAINER
   ======================================== */

.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 20px;
}

.dashboard-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.dashboard-subtitle {
  color: var(--gray);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* ========================================
   STATS CARDS
   ======================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  border-left: 4px solid var(--primary);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.stat-card.success {
  border-left-color: var(--success);
}

.stat-card.warning {
  border-left-color: var(--warning);
}

.stat-card.info {
  border-left-color: var(--info);
}

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

.stat-label {
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-icon {
  font-size: 2rem;
  opacity: 0.7;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1;
}

.stat-footer {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  color: var(--success);
  font-size: 0.85rem;
  font-weight: 600;
}

.stat-footer.negative {
  color: var(--danger);
}

/* ========================================
   SECTION HEADER
   ======================================== */

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

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-badge {
  background: var(--primary);
  color: white;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

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

.btn-filter {
  background: white;
  border: 2px solid var(--gray-light);
  color: var(--dark);
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-filter:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-filter.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ========================================
   ORDERS GRID
   ======================================== */

.orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.order-card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  cursor: pointer;
  overflow: hidden;
  border: 2px solid transparent;
}

.order-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, rgba(59,123,43,0.05) 0%, rgba(92,59,39,0.05) 100%);
  border-bottom: 1px solid var(--gray-light);
}

.order-id {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.order-time {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--gray);
  font-size: 0.9rem;
  font-weight: 600;
}

.order-body {
  padding: 20px;
}

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

.customer-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 5px;
}

.customer-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 0.9rem;
}

.customer-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--dark);
  font-size: 0.95rem;
  margin-top: 5px;
}

.order-items {
  background: var(--light);
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
}

.order-items-title {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-light);
}

.order-item:last-child {
  border-bottom: none;
}

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

.item-emoji {
  font-size: 1.5rem;
}

.item-name {
  font-weight: 600;
  color: var(--dark);
}

.item-qty {
  color: var(--gray);
  font-size: 0.9rem;
}

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

.order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 2px solid var(--gray-light);
}

.order-total {
  display: flex;
  flex-direction: column;
}

.total-label {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 600;
}

.total-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
}

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

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59,123,43,0.3);
}

.btn-secondary {
  background: var(--gray-light);
  color: var(--dark);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: var(--gray);
  color: white;
}

/* ========================================
   MODAL
   ======================================== */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 1000;
  overflow-y: auto;
  padding: 20px;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 30px;
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 700;
}

.modal-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.modal-close:hover {
  background: rgba(255,255,255,0.3);
  transform: rotate(90deg);
}

.modal-body {
  padding: 30px;
}

.modal-section {
  margin-bottom: 30px;
}

.modal-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.info-item {
  background: var(--light);
  padding: 15px;
  border-radius: 8px;
}

.info-label {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.info-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
}

.mini-map {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, rgba(59,123,43,0.1) 0%, rgba(92,59,39,0.1) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 3rem;
  margin-top: 15px;
}

.modal-footer {
  padding: 20px 30px;
  background: var(--light);
  border-radius: 0 0 16px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: #218838;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #c82333;
}

/* ========================================
   NOTIFICATION TOAST
   ======================================== */

.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: white;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 2000;
  animation: toastSlideIn 0.3s ease-out;
  max-width: 400px;
}

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

.toast-icon {
  font-size: 1.8rem;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 3px;
}

.toast-message {
  color: var(--gray);
  font-size: 0.9rem;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .dashboard-title {
    font-size: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .orders-grid {
    grid-template-columns: 1fr;
  }

  .header-actions {
    display: none;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .modal-content {
    max-width: 100%;
    margin: 10px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .toast {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}





