/* ============================================
   AMELIORATIONS UI PAGE AUTOMOD
   Layout large et professionnel - Cohérence avec Solutions/Shop
   ============================================ */

/* Container principal - Large et aligné à gauche avec plus d'espace */
.automod-page-container {
  max-width: 1300px;
  margin: 0;
  padding: 48px 40px;
  width: 100%;
}

/* Header Automod - Plus d'espace, meilleure hiérarchie */
.automod-header {
  margin-bottom: 56px;
  text-align: left;
}

.automod-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.automod-header-title h4 {
  font-size: 32px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary, #ffffff);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.automod-header-info-icon {
  color: rgb(22, 104, 220);
  font-size: 20px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.automod-header-info-icon:hover {
  opacity: 1;
}

.automod-header-description {
  color: rgba(255, 255, 255, 0.65);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  max-width: 750px;
}

/* Section Upload - Bloc principal avec plus de profondeur */
.automod-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Zone d'upload - Dropzone plus haute et visuellement plus forte */
.automod-upload-zone {
  position: relative;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 80px 56px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
  cursor: pointer;
  margin-bottom: 0;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.automod-upload-zone:hover {
  border-color: rgba(11, 94, 215, 0.5);
  background: rgba(11, 94, 215, 0.05);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(11, 94, 215, 0.1);
}

.automod-upload-zone.drag-over {
  border-color: rgb(11, 94, 215);
  background: rgba(11, 94, 215, 0.1);
  transform: scale(1.005);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(11, 94, 215, 0.2);
}

.automod-upload-zone.has-file {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.05);
}

.automod-upload-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.automod-upload-zone:hover .automod-upload-icon,
.automod-upload-zone.drag-over .automod-upload-icon {
  color: rgb(11, 94, 215);
}

.automod-upload-zone.has-file .automod-upload-icon {
  color: rgb(34, 197, 94);
}

.automod-upload-text {
  margin-bottom: 0;
}

.automod-upload-text p {
  margin-bottom: 8px !important;
  margin-top: 8px !important;
}

.automod-upload-button {
  margin-top: 24px;
}

.automod-file-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
}

.automod-file-name.has-file {
  color: rgb(34, 197, 94);
}

.automod-file-name-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* CTA Area - Zone d'action claire et séparée */
.automod-cta-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.automod-cta-button {
  min-width: 240px;
  padding: 16px 48px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.automod-cta-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.automod-cta-button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11, 94, 215, 0.35);
}

/* Espacement vertical amélioré entre sections */
.automod-section {
  margin-top: 40px;
}

.automod-section:first-of-type {
  margin-top: 0;
}

/* Padding interne de la carte upload augmenté */
#upload-section .MuiCardContent-root {
  padding: 32px 40px !important;
}

/* Texte secondaire plus discret */
.automod-secondary-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  margin-top: 16px !important;
}

/* Centrer les titres des sections */
.automod-section .MuiCardHeader-root {
  text-align: center !important;
  justify-content: center !important;
}

.automod-section .MuiCardHeader-root > div {
  justify-content: center !important;
}

/* Animation pendant l'analyse */
/* Animations techniques et professionnelles */
/* Animations pour la barre de progression moderne */
@keyframes automod-progress-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes automod-progress-pulse {
  0%, 100% {
    opacity: 0.3;
    transform: translateY(-50%) scaleX(1);
  }
  50% {
    opacity: 0.6;
    transform: translateY(-50%) scaleX(1.02);
  }
}

@keyframes automod-step-pulse {
  0%, 100% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.5);
  }
}

@keyframes automod-container-pulse {
  0%, 100% {
    box-shadow: 
      inset 0 2px 4px rgba(0, 0, 0, 0.3),
      0 0 0 rgba(11, 94, 215, 0);
  }
  50% {
    box-shadow: 
      inset 0 2px 4px rgba(0, 0, 0, 0.3),
      0 0 20px rgba(11, 94, 215, 0.15);
  }
}

@keyframes automod-container-glow {
  0%, 100% {
    box-shadow: 0 0 0 rgba(11, 94, 215, 0.1);
    border-color: rgba(11, 94, 215, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(11, 94, 215, 0.15);
    border-color: rgba(11, 94, 215, 0.3);
  }
}

/* Section d'analyse - Style technique et professionnel */
#scanning-section.automod-card {
  position: relative !important;
  animation: automod-container-glow 4s ease-in-out infinite !important;
  border: 1px solid rgba(11, 94, 215, 0.25) !important;
  background: linear-gradient(
    135deg,
    rgba(11, 94, 215, 0.03) 0%,
    rgba(11, 94, 215, 0.06) 50%,
    rgba(11, 94, 215, 0.03) 100%
  ) !important;
  overflow: hidden !important;
}

/* Effet de scan-line subtil en haut */
#scanning-section.automod-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(11, 94, 215, 0.6) 50%,
    transparent 100%
  );
  animation: automod-progress-scan 3s linear infinite;
  pointer-events: none;
  z-index: 1;
}

/* Container pour l'indicateur de progression */
#scanning-section .MuiCardContent-root {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 60px 40px !important;
  min-height: 320px !important;
}

/* Section Scanning - Barre de progression moderne */
.automod-scanning-progress-wrapper {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 0;
}

.automod-scanning-message {
  transition: opacity 0.3s ease !important;
  text-align: center !important;
  max-width: 600px;
  margin: 0 auto 32px auto;
  font-weight: 500 !important;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9) !important;
  letter-spacing: -0.01em;
}

/* Conteneur de la barre de progression */
.automod-progress-container {
  position: relative;
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Barre de progression principale */
.automod-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    rgba(11, 94, 215, 0.9) 0%,
    rgba(11, 94, 215, 1) 50%,
    rgba(11, 94, 215, 0.9) 100%
  );
  background-size: 200% 100%;
  border-radius: 8px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 0 12px rgba(11, 94, 215, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  animation: automod-progress-shimmer 2s linear infinite;
}

/* Effet de glow pulsant */
.automod-progress-glow {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(11, 94, 215, 0.3) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  border-radius: 8px;
  animation: automod-progress-pulse 2.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

/* Indicateurs de progression par étapes */
.automod-scanning-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.automod-step-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.automod-step-indicator.active {
  background: rgba(11, 94, 215, 0.8);
  border-color: rgba(11, 94, 215, 0.6);
  box-shadow: 
    0 0 8px rgba(11, 94, 215, 0.5),
    0 0 16px rgba(11, 94, 215, 0.3);
  transform: scale(1.2);
}

.automod-step-indicator.active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(11, 94, 215, 0.2);
  animation: automod-step-pulse 2s ease-in-out infinite;
}

/* Animation de pulsation pour le conteneur de progression */
#scanning-section[style*="display: block"] .automod-progress-container,
#scanning-section:not([style*="display: none"]) .automod-progress-container {
  animation: automod-container-pulse 3s ease-in-out infinite;
}

/* Section Application des patches - Styles similaires à la section scanning */
.automod-applying-progress-wrapper {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 0;
}

.automod-applying-message {
  transition: opacity 0.3s ease !important;
  text-align: center !important;
  max-width: 600px;
  margin: 0 auto 32px auto;
  font-weight: 500 !important;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9) !important;
  letter-spacing: -0.01em;
}

/* Barre de progression pour l'application - Couleur verte */
#applying-section .automod-progress-container {
  position: relative;
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#applying-section .automod-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    rgba(34, 197, 94, 0.9) 0%,
    rgba(34, 197, 94, 1) 50%,
    rgba(34, 197, 94, 0.9) 100%
  );
  background-size: 200% 100%;
  border-radius: 8px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 0 12px rgba(34, 197, 94, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  animation: automod-progress-shimmer 2s linear infinite;
}

#applying-section .automod-progress-glow {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(34, 197, 94, 0.3) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  border-radius: 8px;
  animation: automod-progress-pulse 2.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

#applying-section .automod-applying-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

#applying-section .automod-step-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

#applying-section .automod-step-indicator.active {
  background: rgba(34, 197, 94, 0.8);
  border-color: rgba(34, 197, 94, 0.6);
  box-shadow: 
    0 0 8px rgba(34, 197, 94, 0.5),
    0 0 16px rgba(34, 197, 94, 0.3);
  transform: scale(1.2);
}

#applying-section .automod-step-indicator.active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.2);
  animation: automod-step-pulse 2s ease-in-out infinite;
}

/* Animation de pulsation pour le conteneur de progression */
#applying-section[style*="display: block"] .automod-progress-container,
#applying-section:not([style*="display: none"]) .automod-progress-container {
  animation: automod-container-pulse-green 3s ease-in-out infinite;
}

@keyframes automod-container-pulse-green {
  0%, 100% {
    box-shadow: 
      inset 0 2px 4px rgba(0, 0, 0, 0.3),
      0 0 0 rgba(34, 197, 94, 0);
  }
  50% {
    box-shadow: 
      inset 0 2px 4px rgba(0, 0, 0, 0.3),
      0 0 20px rgba(34, 197, 94, 0.15);
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .automod-page-container {
    max-width: 100%;
    padding: 40px 32px;
  }
  
  .automod-header {
    margin-bottom: 48px;
  }
}

@media (max-width: 768px) {
  .automod-page-container {
    padding: 32px 24px;
  }

  .automod-header {
    margin-bottom: 40px;
  }

  .automod-header-title h4 {
    font-size: 26px;
  }

  .automod-header-description {
    font-size: 15px;
  }

  #upload-section .MuiCardContent-root {
    padding: 24px 20px !important;
  }

  .automod-upload-zone {
    padding: 56px 32px;
    min-height: 240px;
  }

  .automod-upload-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
  }

  .automod-cta-container {
    justify-content: center;
    margin-top: 32px;
    padding-top: 24px;
  }

  .automod-cta-button {
    width: 100%;
    max-width: 100%;
  }
}

/* Styles pour la liste des patches */
#patches-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#patches-list li {
  transition: background-color 0.2s ease;
}

#patches-list li:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

#patches-list .patch-checkbox {
  accent-color: rgb(11, 94, 215);
}

#patches-list label {
  user-select: none;
}

/* Section d'achat améliorée - Design moderne et professionnel */
.automod-purchase-section {
  margin-top: 32px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(11, 94, 215, 0.08) 0%, rgba(11, 94, 215, 0.03) 100%);
  border-radius: 12px;
  border: 1px solid rgba(11, 94, 215, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.automod-purchase-section:hover {
  border-color: rgba(11, 94, 215, 0.3);
  box-shadow: 0 6px 20px rgba(11, 94, 215, 0.15);
}

.automod-total-cost-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.automod-total-cost-label {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.01em;
}

.automod-total-credits {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.08) 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  color: rgb(34, 197, 94);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
  transition: all 0.3s ease;
}

.automod-total-credits:empty::before {
  content: "0 Crédits";
}

/* Bouton d'achat amélioré */
.automod-purchase-button {
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, rgb(34, 197, 94) 0%, rgb(22, 163, 74) 100%);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
  position: relative;
  overflow: hidden;
}

.automod-purchase-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.automod-purchase-button:hover::before {
  left: 100%;
}

.automod-purchase-button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35);
  background: linear-gradient(135deg, rgb(34, 197, 94) 0%, rgb(22, 163, 74) 100%);
}

.automod-purchase-button:not(:disabled):active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.automod-purchase-button:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.automod-purchase-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.automod-purchase-button:not(:disabled):hover .automod-purchase-icon {
  transform: translateY(2px);
}

.automod-purchase-text {
  font-weight: 600;
}

/* Section de téléchargement - Design cohérent avec la section d'achat */
.automod-download-section {
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.03) 100%);
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.automod-download-section:hover {
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.15);
}

.automod-success-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.automod-success-icon {
  width: 24px;
  height: 24px;
  color: rgb(34, 197, 94);
  flex-shrink: 0;
}

.automod-success-text {
  margin: 0;
  color: rgb(34, 197, 94);
  font-size: 16px;
  font-weight: 500;
}

.automod-download-button {
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, rgb(11, 94, 215) 0%, rgb(9, 75, 172) 100%);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(11, 94, 215, 0.25);
  position: relative;
  overflow: hidden;
}

.automod-download-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.automod-download-button:hover::before {
  left: 100%;
}

.automod-download-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(11, 94, 215, 0.35);
  background: linear-gradient(135deg, rgb(11, 94, 215) 0%, rgb(9, 75, 172) 100%);
}

.automod-download-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(11, 94, 215, 0.3);
}

.automod-download-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.automod-download-button:hover .automod-download-icon {
  transform: translateY(2px);
}

.automod-download-text {
  font-weight: 600;
}

/* Section d'erreur - Design cohérent avec le reste du module */
.automod-error-section {
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.03) 100%);
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.automod-error-section:hover {
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.15);
}

.automod-error-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.automod-error-icon {
  width: 24px;
  height: 24px;
  color: rgb(239, 68, 68);
  flex-shrink: 0;
}

.automod-error-text {
  margin: 0;
  color: rgb(239, 68, 68);
  font-size: 16px;
  font-weight: 500;
}

.automod-restart-button {
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, rgb(239, 68, 68) 0%, rgb(220, 38, 38) 100%);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
  position: relative;
  overflow: hidden;
}

.automod-restart-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.automod-restart-button:hover::before {
  left: 100%;
}

.automod-restart-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
  background: linear-gradient(135deg, rgb(239, 68, 68) 0%, rgb(220, 38, 38) 100%);
}

.automod-restart-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.automod-restart-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.automod-restart-button:hover .automod-restart-icon {
  transform: rotate(180deg);
}

.automod-restart-text {
  font-weight: 600;
}

/* Effet de mise en avant pour Automod dans le menu latéral */
a[href="automod.html"] {
  position: relative;
  background: linear-gradient(135deg, rgba(11, 94, 215, 0.1) 0%, rgba(11, 94, 215, 0.05) 100%);
  border-left: 3px solid rgba(11, 94, 215, 0.6);
  animation: automod-menu-glow 2.5s ease-in-out infinite;
}

a[href="automod.html"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(11, 94, 215, 0.15) 0%, rgba(11, 94, 215, 0.05) 100%);
  border-radius: 8px;
  opacity: 0;
  animation: automod-menu-pulse 2.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

a[href="automod.html"] > * {
  position: relative;
  z-index: 1;
}

a[href="automod.html"] .MuiListItemIcon-root svg {
  filter: drop-shadow(0 0 8px rgba(11, 94, 215, 0.6));
  animation: automod-icon-glow 2.5s ease-in-out infinite;
}

@keyframes automod-menu-glow {
  0%, 100% {
    box-shadow: 0 0 0 rgba(11, 94, 215, 0);
    border-left-color: rgba(11, 94, 215, 0.6);
  }
  50% {
    box-shadow: 0 0 20px rgba(11, 94, 215, 0.4), inset 0 0 20px rgba(11, 94, 215, 0.1);
    border-left-color: rgba(11, 94, 215, 0.9);
  }
}

@keyframes automod-menu-pulse {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

@keyframes automod-icon-glow {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(11, 94, 215, 0.6));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(11, 94, 215, 0.9)) drop-shadow(0 0 24px rgba(11, 94, 215, 0.5));
  }
}

/* Responsive pour la section d'achat */
@media (max-width: 768px) {
  .automod-purchase-section {
    padding: 20px;
    margin-top: 24px;
  }

  .automod-total-cost-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 16px;
  }

  .automod-total-cost-label {
    font-size: 16px;
  }

  .automod-total-credits {
    font-size: 18px;
    padding: 8px 16px;
    width: 100%;
    justify-content: center;
  }

  .automod-purchase-button {
    padding: 16px 24px;
    font-size: 15px;
  }

  .automod-download-section {
    padding: 20px;
  }

  .automod-success-message {
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }

  .automod-download-button {
    padding: 16px 24px;
    font-size: 15px;
  }

  .automod-error-section {
    padding: 20px;
  }

  .automod-error-message {
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }

  .automod-restart-button {
    padding: 16px 24px;
    font-size: 15px;
  }
}

/* Badge du nombre de patches avec glow/pulse */
.automod-patches-count-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(11, 94, 215, 0.2), rgba(11, 94, 215, 0.1));
  border: 1px solid rgba(11, 94, 215, 0.4);
  border-radius: 20px;
  color: rgb(11, 94, 215);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 0 20px rgba(11, 94, 215, 0.4), 0 0 40px rgba(11, 94, 215, 0.2);
  animation: automod-pulse-glow 2s ease-in-out infinite;
}

@keyframes automod-pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(11, 94, 215, 0.4), 0 0 40px rgba(11, 94, 215, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(11, 94, 215, 0.6), 0 0 60px rgba(11, 94, 215, 0.3);
  }
}

#patches-count-number {
  font-size: 18px;
  font-weight: 700;
}