/* DASHBOARD CUISINIER - DESIGN MODERNE */

.chef-dashboard {
  max-width: 1400px;
  margin: 100px auto 40px;
  padding: 0 20px;
}

/* En-tête dashboard */
.chef-header {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  border-radius: 24px;
  padding: 40px;
  color: white;
  margin-bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 32px rgba(255, 184, 0, 0.3);
}

.chef-welcome h1 {
  font-size: 32px;
  margin: 0 0 8px;
  font-weight: 800;
}

.chef-welcome p {
  margin: 0;
  opacity: 0.9;
  font-size: 16px;
}

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

.btn-chef-primary {
  background: white;
  color: var(--primary);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
}

.btn-chef-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.stat-card-chef {
  background: white;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stat-icon-chef {
  font-size: 48px;
  margin-bottom: 12px;
}

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

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

/* Section */
.chef-section {
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  margin-bottom: 32px;
}

.chef-section-header {
  margin-bottom: 24px;
}

.chef-section-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

/* Grille des plats */
.my-plats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.empty-plats {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}

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

.empty-plats h3 {
  font-size: 20px;
  color: #1a1a1a;
  margin: 0 0 8px;
}

.empty-plats p {
  color: #666;
  margin: 0;
}

/* Carte de plat */
.my-plat-card {
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.my-plat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.my-plat-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.my-plat-content {
  padding: 16px;
}

.my-plat-name {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px;
}

.my-plat-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 12px;
}

.my-plat-actions {
  display: flex;
  gap: 8px;
}

.btn-edit-plat,
.btn-delete-plat {
  flex: 1;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.btn-edit-plat:hover {
  background: var(--primary-dark);
}

.btn-delete-plat {
  background: var(--error);
  color: white;
}

.btn-delete-plat:hover {
  background: #B91C1C;
}

/* Section Profil */
.profile-section {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.profile-photo-container {
  flex-shrink: 0;
}

.profile-photo-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.profile-photo-wrapper:hover .profile-photo-overlay {
  opacity: 1;
}

.btn-change-photo {
  background: white;
  color: var(--primary);
  padding: 12px 24px;
  border-radius: 50px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-change-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.profile-info {
  flex: 1;
}

.profile-info h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px;
}

.profile-info > p {
  color: #666;
  margin: 0 0 24px;
}

.profile-stats {
  display: flex;
  gap: 32px;
}

.profile-stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.profile-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

/* Modal */
.modal {
  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: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

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

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

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

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

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

.modal-body {
  padding: 24px;
}

/* Form */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.1);
}

/* Upload Photo */
.photo-upload {
  border: 2px dashed #cbd5e0;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.photo-upload:hover {
  border-color: var(--primary);
  background: #fff5e6;
}

.photo-upload-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.photo-upload-text {
  font-size: 14px;
  color: #666;
}

.photo-preview {
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.photo-preview img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
}

/* Modal Footer */
.modal-footer {
  padding: 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 12px;
}

.btn-cancel,
.btn-submit {
  flex: 1;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cancel {
  background: #f1f5f9;
  color: #1a1a1a;
}

.btn-cancel:hover {
  background: #e2e8f0;
}

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

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

/* 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-dashboard {
    margin-top: 84px;
    padding: 0 16px;
  }

  .chef-header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 28px 20px;
    border-radius: 20px;
  }

  .chef-actions,
  .btn-chef-primary {
    width: 100%;
  }
  
  .stats-grid-chef {
    grid-template-columns: 1fr;
  }

  .chef-section {
    padding: 24px 18px;
  }
  
  .my-plats-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .profile-stats {
    justify-content: center;
  }

  .modal-content {
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    border-radius: 16px;
  }

  .modal-footer {
    flex-direction: column;
  }

  .modal-footer button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .chef-welcome h1 {
    font-size: 26px;
  }

  .stat-card-chef {
    padding: 22px 18px;
  }
}
