/* PAGE COMMANDES CUISINIER */

.chef-commandes-main {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 90px 20px 40px;
}

.chef-commandes-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* Header */
.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 36px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 12px;
}

.page-header p {
  font-size: 16px;
  color: #666;
  margin: 0;
}

/* Stats Grid */
.commandes-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.commande-stat-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.commande-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.commande-stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.commande-stat-icon.pending {
  background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
}

.commande-stat-icon.preparing {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

.commande-stat-icon.ready {
  background: linear-gradient(135deg, #55efc4 0%, #00b894 100%);
}

.commande-stat-icon.completed {
  background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
}

.commande-stat-info {
  flex: 1;
}

.commande-stat-value {
  font-size: 32px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.commande-stat-label {
  font-size: 14px;
  color: #666;
  font-weight: 600;
}

/* Filtres */
.commandes-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.filter-btn {
  padding: 12px 24px;
  border: 2px solid #e9ecef;
  background: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  border-color: var(--primary);
  color: white;
}

.filter-count {
  background: rgba(0, 0, 0, 0.1);
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
}

.filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.3);
}

/* Liste des Commandes */
.commandes-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.commande-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.commande-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.commande-card-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dee2e6;
}

.commande-id {
  font-weight: 700;
  font-size: 16px;
  color: #1a1a1a;
}

.commande-date {
  font-size: 14px;
  color: #666;
}

.commande-status {
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
}

.commande-status.pending {
  background: #ffeaa7;
  color: #d63031;
}

.commande-status.preparing {
  background: #74b9ff;
  color: #0984e3;
}

.commande-status.ready {
  background: #55efc4;
  color: #00b894;
}

.commande-status.completed {
  background: #a29bfe;
  color: #6c5ce7;
}

.commande-status.cancelled {
  background: #fab1a0;
  color: #d63031;
}

.commande-card-body {
  padding: 24px;
}

.commande-client {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f3f5;
}

.commande-client-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.commande-client-info {
  flex: 1;
}

.commande-client-name {
  font-weight: 700;
  font-size: 16px;
  color: #1a1a1a;
  margin: 0 0 4px;
}

.commande-client-contact {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.commande-items {
  margin-bottom: 20px;
}

.commande-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 12px;
}

.commande-item-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.commande-item-info {
  flex: 1;
}

.commande-item-name {
  font-weight: 600;
  font-size: 15px;
  color: #1a1a1a;
  margin: 0 0 4px;
}

.commande-item-quantity {
  font-size: 14px;
  color: #666;
  margin: 0;
}

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

.commande-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #f1f3f5;
}

.commande-total {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

.commande-total-amount {
  color: var(--primary);
  font-size: 24px;
}

.commande-actions {
  display: flex;
  gap: 12px;
}

.commande-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.commande-btn-primary {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: white;
}

.commande-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 138, 0, 0.4);
}

.commande-btn-secondary {
  background: #f8f9fa;
  color: #666;
  border: 2px solid #e9ecef;
}

.commande-btn-secondary:hover {
  background: #e9ecef;
  color: #1a1a1a;
}

.commande-btn-success {
  background: linear-gradient(135deg, #55efc4 0%, #00b894 100%);
  color: white;
}

.commande-btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 184, 148, 0.4);
}

.commande-btn-danger {
  background: linear-gradient(135deg, #ff7675 0%, #d63031 100%);
  color: white;
}

.commande-btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(214, 48, 49, 0.4);
}

/* Empty State */
.commandes-empty {
  text-align: center;
  padding: 80px 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.commandes-empty-icon {
  font-size: 80px;
  opacity: 0.3;
  margin-bottom: 20px;
}

.commandes-empty h3 {
  font-size: 22px;
  color: #1a1a1a;
  margin: 0 0 12px;
}

.commandes-empty p {
  font-size: 16px;
  color: #666;
  margin: 0;
}

/* Modal */
.modal-commande {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-commande.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-commande-content {
  background: white;
  border-radius: 16px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}

.modal-commande-header {
  padding: 24px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-commande-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.modal-commande-close {
  background: none;
  border: none;
  font-size: 32px;
  color: #666;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.modal-commande-close:hover {
  background: #f8f9fa;
  color: #1a1a1a;
}

.modal-commande-body {
  padding: 24px;
}

.commande-card-note {
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 8px;
  background: var(--bg-light, #f8f9fa);
}

.commande-card-note.warning {
  background: var(--warning-soft, #FEF3C7);
}

.commande-empty-text {
  color: var(--text-gray, #666);
}

.commande-details-status {
  margin-bottom: 24px;
  text-align: center;
}

.commande-details-status .commande-status {
  display: inline-block;
  font-size: 16px;
}

.commande-details-panel {
  padding: 20px;
  margin-bottom: 24px;
  border-radius: 12px;
  background: var(--bg-light, #f8f9fa);
}

.commande-details-panel.info {
  background: var(--info-soft, #E8F1FF);
}

.commande-details-panel.warning {
  background: var(--warning-soft, #FEF3C7);
}

.commande-details-title {
  margin: 0 0 16px;
  font-size: 18px;
}

.commande-details-title.compact {
  margin-bottom: 12px;
}

.commande-client-detail-row,
.commande-details-total-row,
.notification-toast-row {
  display: flex;
  align-items: center;
}

.commande-client-detail-row {
  gap: 16px;
}

.commande-details-client-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.commande-details-client-name,
.notification-toast-title {
  margin-bottom: 4px;
  font-weight: 700;
}

.commande-details-muted,
.notification-toast-message {
  color: var(--text-gray, #666);
  font-size: 14px;
}

.commande-details-text {
  margin: 0;
}

.commande-details-total-panel {
  padding: 20px;
  border-radius: 12px;
  background: var(--bg-light, #f8f9fa);
}

.commande-details-total-row {
  justify-content: space-between;
}

.commande-details-total-label {
  font-size: 18px;
  font-weight: 600;
}

.commande-details-total-price {
  color: var(--primary);
  font-size: 28px;
  font-weight: 800;
}

.commande-details-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.notification-toast-row {
  gap: 12px;
}

.notification-toast-icon {
  font-size: 24px;
}

.notification-toast-body {
  flex: 1;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Responsive */
@media (max-width: 768px) {
  .chef-commandes-main {
    padding: 80px 10px 40px;
  }

  .page-header h1 {
    font-size: 28px;
  }

  .commandes-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .commande-stat-card {
    flex-direction: column;
    text-align: center;
  }

  .commandes-filters {
    padding: 12px;
  }

  .filter-btn {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }

  .commande-card-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .commande-footer {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .commande-actions {
    flex-direction: column;
  }

  .commande-btn {
    width: 100%;
  }
}
