/* Améliorations du design des dashboards Admin et Commercial */
/* AutoBF - 2025-01-09 - Version améliorée */

/* ============================================
   AMÉLIORATIONS GÉNÉRALES
   ============================================ */

/* Conteneur principal du dashboard - Fond coloré et vibrant */
[class*="Dashboard"],
body [class*="Dashboard"],
#root [class*="Dashboard"] {
  background: linear-gradient(135deg, #ffffff 0%, #fef3c7 15%, #fecdd3 30%, #ddd6fe 45%, #c7d2fe 60%, #fef3c7 75%, #ffffff 100%) !important;
  min-height: 100vh !important;
  position: relative !important;
  background-attachment: fixed !important;
}

/* Forcer tous les fonds gris à être blanc */
[class*="Dashboard"] [class*="bg-gray"],
[class*="Dashboard"] [class*="bg-slate"],
[class*="Dashboard"] [class*="bg-zinc"] {
  background: #ffffff !important;
  background-image: none !important;
}

/* Effet de particules animées en arrière-plan - Couleurs vives et distinctives */
[class*="Dashboard"]::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(249, 115, 22, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 10% 80%, rgba(34, 197, 94, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(236, 72, 153, 0.12) 0%, transparent 45%);
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(5deg);
  }
}

/* Contenu au-dessus de l'arrière-plan */
[class*="Dashboard"] > * {
  position: relative;
  z-index: 1;
}

/* En-tête du dashboard - Blanc pur */
[class*="Dashboard"] header,
[class*="Dashboard"] > div > header,
[class*="Dashboard"] [class*="header"],
[class*="Dashboard"] [class*="navbar"],
[class*="Dashboard"] nav {
  background: #ffffff !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  box-shadow: 
    0 4px 6px -1px rgba(249, 115, 22, 0.08),
    0 2px 4px -1px rgba(249, 115, 22, 0.06),
    0 0 0 1px rgba(255, 247, 237, 0.8) !important;
  border-bottom: 2px solid rgba(254, 243, 199, 0.8) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
}

/* Supprimer tous les fonds gris de l'en-tête */
[class*="Dashboard"] header [class*="bg-gray"],
[class*="Dashboard"] header [class*="bg-slate"],
[class*="Dashboard"] header [class*="bg-zinc"] {
  background: #ffffff !important;
}

/* Titre principal - Dégradé coloré vibrant */
[class*="Dashboard"] h1,
[class*="Dashboard"] h2 {
  background: linear-gradient(135deg, #f97316 0%, #ec4899 25%, #8b5cf6 50%, #3b82f6 75%, #10b981 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-weight: 800 !important;
  background-size: 200% 200% !important;
  animation: gradientShift 5s ease infinite !important;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ============================================
   CARTES DE STATISTIQUES
   ============================================ */

/* Cartes de statistiques - Style moderne avec couleurs distinctives */
[class*="Dashboard"] [class*="grid"] > [class*="Card"],
[class*="Dashboard"] [class*="grid"] > div {
  background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.95) 100%) !important;
  backdrop-filter: blur(10px) saturate(180%) !important;
  border-radius: 20px !important;
  box-shadow: 
    0 8px 16px -4px rgba(0, 0, 0, 0.1),
    0 4px 8px -2px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(249, 115, 22, 0.15) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 2px solid transparent !important;
  background-image: linear-gradient(white, white), linear-gradient(135deg, #f97316, #3b82f6, #8b5cf6, #ec4899) !important;
  background-origin: border-box !important;
  background-clip: padding-box, border-box !important;
  padding: 1.75rem !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Première carte - Orange */
[class*="Dashboard"] [class*="grid"] > [class*="Card"]:nth-child(1),
[class*="Dashboard"] [class*="grid"] > div:nth-child(1) {
  background-image: linear-gradient(white, white), linear-gradient(135deg, #f97316, #ea580c) !important;
  background-clip: padding-box, border-box !important;
}

/* Deuxième carte - Bleu */
[class*="Dashboard"] [class*="grid"] > [class*="Card"]:nth-child(2),
[class*="Dashboard"] [class*="grid"] > div:nth-child(2) {
  background-image: linear-gradient(white, white), linear-gradient(135deg, #3b82f6, #2563eb) !important;
  background-clip: padding-box, border-box !important;
}

/* Troisième carte - Violet */
[class*="Dashboard"] [class*="grid"] > [class*="Card"]:nth-child(3),
[class*="Dashboard"] [class*="grid"] > div:nth-child(3) {
  background-image: linear-gradient(white, white), linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
  background-clip: padding-box, border-box !important;
}

/* Quatrième carte - Rose */
[class*="Dashboard"] [class*="grid"] > [class*="Card"]:nth-child(4),
[class*="Dashboard"] [class*="grid"] > div:nth-child(4) {
  background-image: linear-gradient(white, white), linear-gradient(135deg, #ec4899, #db2777) !important;
  background-clip: padding-box, border-box !important;
}

/* Cinquième carte - Vert */
[class*="Dashboard"] [class*="grid"] > [class*="Card"]:nth-child(5),
[class*="Dashboard"] [class*="grid"] > div:nth-child(5) {
  background-image: linear-gradient(white, white), linear-gradient(135deg, #10b981, #059669) !important;
  background-clip: padding-box, border-box !important;
}

/* Sixième carte - Jaune */
[class*="Dashboard"] [class*="grid"] > [class*="Card"]:nth-child(6),
[class*="Dashboard"] [class*="grid"] > div:nth-child(6) {
  background-image: linear-gradient(white, white), linear-gradient(135deg, #f59e0b, #d97706) !important;
  background-clip: padding-box, border-box !important;
}

/* Effet de brillance sur les cartes */
[class*="Dashboard"] [class*="grid"] > [class*="Card"]::before,
[class*="Dashboard"] [class*="grid"] > div::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s ease;
}

[class*="Dashboard"] [class*="grid"] > [class*="Card"]:hover::before,
[class*="Dashboard"] [class*="grid"] > div:hover::before {
  left: 100%;
}

/* Effet hover sur les cartes - Plus coloré et dynamique */
[class*="Dashboard"] [class*="grid"] > [class*="Card"]:hover,
[class*="Dashboard"] [class*="grid"] > div:hover {
  transform: translateY(-8px) scale(1.03) rotate(1deg) !important;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 12px 24px -6px rgba(0, 0, 0, 0.15),
    0 0 0 2px currentColor,
    0 0 30px currentColor !important;
  border-width: 3px !important;
  background: linear-gradient(135deg, #ffffff 0%, #fef3c7 100%) !important;
}

/* Icônes dans les cartes - Couleurs distinctives selon la carte */
[class*="Dashboard"] [class*="grid"] svg {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15)) !important;
  transition: all 0.3s ease !important;
}

[class*="Dashboard"] [class*="grid"] > div:nth-child(1) svg {
  color: #f97316 !important;
  filter: drop-shadow(0 4px 8px rgba(249, 115, 22, 0.3)) !important;
}

[class*="Dashboard"] [class*="grid"] > div:nth-child(2) svg {
  color: #3b82f6 !important;
  filter: drop-shadow(0 4px 8px rgba(59, 130, 246, 0.3)) !important;
}

[class*="Dashboard"] [class*="grid"] > div:nth-child(3) svg {
  color: #8b5cf6 !important;
  filter: drop-shadow(0 4px 8px rgba(139, 92, 246, 0.3)) !important;
}

[class*="Dashboard"] [class*="grid"] > div:nth-child(4) svg {
  color: #ec4899 !important;
  filter: drop-shadow(0 4px 8px rgba(236, 72, 153, 0.3)) !important;
}

[class*="Dashboard"] [class*="grid"] > div:nth-child(5) svg {
  color: #10b981 !important;
  filter: drop-shadow(0 4px 8px rgba(16, 185, 129, 0.3)) !important;
}

[class*="Dashboard"] [class*="grid"] > div:nth-child(6) svg {
  color: #f59e0b !important;
  filter: drop-shadow(0 4px 8px rgba(245, 158, 11, 0.3)) !important;
}

[class*="Dashboard"] [class*="grid"] > div:hover svg {
  transform: scale(1.15) rotate(5deg) !important;
}

/* Nombres dans les cartes - Couleurs distinctives selon la carte */
[class*="Dashboard"] [class*="grid"] [class*="font-bold"],
[class*="Dashboard"] [class*="grid"] .text-lg {
  font-size: 2rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Première carte - Orange */
[class*="Dashboard"] [class*="grid"] > div:nth-child(1) [class*="font-bold"],
[class*="Dashboard"] [class*="grid"] > div:nth-child(1) .text-lg {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Deuxième carte - Bleu */
[class*="Dashboard"] [class*="grid"] > div:nth-child(2) [class*="font-bold"],
[class*="Dashboard"] [class*="grid"] > div:nth-child(2) .text-lg {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Troisième carte - Violet */
[class*="Dashboard"] [class*="grid"] > div:nth-child(3) [class*="font-bold"],
[class*="Dashboard"] [class*="grid"] > div:nth-child(3) .text-lg {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Quatrième carte - Rose */
[class*="Dashboard"] [class*="grid"] > div:nth-child(4) [class*="font-bold"],
[class*="Dashboard"] [class*="grid"] > div:nth-child(4) .text-lg {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Cinquième carte - Vert */
[class*="Dashboard"] [class*="grid"] > div:nth-child(5) [class*="font-bold"],
[class*="Dashboard"] [class*="grid"] > div:nth-child(5) .text-lg {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Sixième carte - Jaune */
[class*="Dashboard"] [class*="grid"] > div:nth-child(6) [class*="font-bold"],
[class*="Dashboard"] [class*="grid"] > div:nth-child(6) .text-lg {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* Labels dans les cartes - Couleurs distinctives selon la carte */
[class*="Dashboard"] [class*="grid"] .text-xs,
[class*="Dashboard"] [class*="grid"] .text-sm {
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  font-size: 0.75rem !important;
  opacity: 0.9 !important;
}

[class*="Dashboard"] [class*="grid"] > div:nth-child(1) .text-xs,
[class*="Dashboard"] [class*="grid"] > div:nth-child(1) .text-sm {
  color: #f97316 !important;
}

[class*="Dashboard"] [class*="grid"] > div:nth-child(2) .text-xs,
[class*="Dashboard"] [class*="grid"] > div:nth-child(2) .text-sm {
  color: #3b82f6 !important;
}

[class*="Dashboard"] [class*="grid"] > div:nth-child(3) .text-xs,
[class*="Dashboard"] [class*="grid"] > div:nth-child(3) .text-sm {
  color: #8b5cf6 !important;
}

[class*="Dashboard"] [class*="grid"] > div:nth-child(4) .text-xs,
[class*="Dashboard"] [class*="grid"] > div:nth-child(4) .text-sm {
  color: #ec4899 !important;
}

[class*="Dashboard"] [class*="grid"] > div:nth-child(5) .text-xs,
[class*="Dashboard"] [class*="grid"] > div:nth-child(5) .text-sm {
  color: #10b981 !important;
}

[class*="Dashboard"] [class*="grid"] > div:nth-child(6) .text-xs,
[class*="Dashboard"] [class*="grid"] > div:nth-child(6) .text-sm {
  color: #f59e0b !important;
}

/* ============================================
   ONGLETS
   ============================================ */

/* Onglets - Style moderne avec couleurs vives */
[class*="Dashboard"] [role="tablist"],
[class*="Dashboard"] [class*="Tabs"] {
  background: linear-gradient(135deg, #ffffff 0%, #fef3c7 50%, #ffffff 100%) !important;
  backdrop-filter: blur(10px) saturate(180%) !important;
  border-radius: 20px !important;
  padding: 0.75rem !important;
  box-shadow: 
    0 8px 16px -4px rgba(249, 115, 22, 0.15),
    0 4px 8px -2px rgba(59, 130, 246, 0.1),
    0 0 0 2px rgba(139, 92, 246, 0.2) !important;
  border: 2px solid transparent !important;
  background-image: linear-gradient(white, #fef3c7), linear-gradient(135deg, #f97316, #3b82f6, #8b5cf6) !important;
  background-origin: border-box !important;
  background-clip: padding-box, border-box !important;
}

/* Boutons d'onglets */
[class*="Dashboard"] [role="tab"],
[class*="Dashboard"] [class*="TabsTrigger"] {
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
  font-weight: 500 !important;
  padding: 0.75rem 1rem !important;
}

/* Onglet actif - Dégradé coloré vibrant */
[class*="Dashboard"] [role="tab"][aria-selected="true"],
[class*="Dashboard"] [class*="TabsTrigger"][data-state="active"] {
  background: linear-gradient(135deg, #f97316 0%, #ec4899 50%, #8b5cf6 100%) !important;
  background-size: 200% 200% !important;
  animation: gradientShift 3s ease infinite !important;
  color: white !important;
  box-shadow: 
    0 8px 16px -4px rgba(249, 115, 22, 0.4),
    0 4px 8px -2px rgba(139, 92, 246, 0.3),
    0 0 0 2px rgba(255, 255, 255, 0.3),
    0 0 20px rgba(249, 115, 22, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.3) !important;
  transform: scale(1.08) translateY(-2px) !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Onglet inactif - Couleur plus chaude */
[class*="Dashboard"] [role="tab"][aria-selected="false"],
[class*="Dashboard"] [class*="TabsTrigger"][data-state="inactive"] {
  background: transparent !important;
  color: #f97316 !important;
  opacity: 0.7 !important;
}

[class*="Dashboard"] [role="tab"][aria-selected="false"]:hover,
[class*="Dashboard"] [class*="TabsTrigger"][data-state="inactive"]:hover {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%) !important;
  color: #f97316 !important;
  transform: scale(1.03) !important;
}

/* ============================================
   CONTENU DES ONGLETS
   ============================================ */

/* Panneaux de contenu - Style coloré et moderne */
[class*="Dashboard"] [role="tabpanel"],
[class*="Dashboard"] [class*="TabsContent"] {
  background: linear-gradient(135deg, #ffffff 0%, #fef3c7 30%, #ddd6fe 60%, #c7d2fe 100%) !important;
  backdrop-filter: blur(10px) saturate(180%) !important;
  border-radius: 24px !important;
  padding: 2.5rem !important;
  margin-top: 1.5rem !important;
  box-shadow: 
    0 12px 24px -6px rgba(249, 115, 22, 0.15),
    0 6px 12px -3px rgba(59, 130, 246, 0.1),
    0 0 0 2px rgba(139, 92, 246, 0.2) !important;
  border: 2px solid transparent !important;
  background-image: linear-gradient(white, #fef3c7, #ddd6fe, #c7d2fe), 
                    linear-gradient(135deg, #f97316, #3b82f6, #8b5cf6, #ec4899) !important;
  background-origin: border-box !important;
  background-clip: padding-box, border-box !important;
  position: relative !important;
  overflow: hidden !important;
}

/* ============================================
   BOUTONS
   ============================================ */

/* Boutons - Style moderne */
[class*="Dashboard"] button:not([role="tab"]) {
  border-radius: 8px !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

/* Boutons primaires */
[class*="Dashboard"] button[class*="bg-blue"],
[class*="Dashboard"] button[class*="bg-orange"] {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: white !important;
  box-shadow: 
    0 4px 6px -1px rgba(249, 115, 22, 0.3),
    0 2px 4px -1px rgba(249, 115, 22, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  position: relative !important;
  overflow: hidden !important;
}

[class*="Dashboard"] button[class*="bg-blue"]::before,
[class*="Dashboard"] button[class*="bg-orange"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

[class*="Dashboard"] button[class*="bg-blue"]:hover::before,
[class*="Dashboard"] button[class*="bg-orange"]:hover::before {
  left: 100%;
}

[class*="Dashboard"] button[class*="bg-blue"]:hover,
[class*="Dashboard"] button[class*="bg-orange"]:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 
    0 10px 15px -3px rgba(249, 115, 22, 0.4),
    0 4px 6px -2px rgba(249, 115, 22, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* Boutons secondaires */
[class*="Dashboard"] button[class*="outline"],
[class*="Dashboard"] button[variant="outline"] {
  border: 2px solid #fed7aa !important;
  background: white !important;
  color: #f97316 !important;
}

[class*="Dashboard"] button[class*="outline"]:hover,
[class*="Dashboard"] button[variant="outline"]:hover {
  border-color: #f97316 !important;
  color: white !important;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 4px 8px rgba(249, 115, 22, 0.3) !important;
}

/* ============================================
   TABLEAUX
   ============================================ */

/* Tableaux - Style moderne - Blanc pur */
[class*="Dashboard"] table {
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 
    0 4px 6px -1px rgba(249, 115, 22, 0.08),
    0 2px 4px -1px rgba(249, 115, 22, 0.06),
    0 0 0 1px rgba(254, 243, 199, 0.8) !important;
  background: #ffffff !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: 1px solid rgba(254, 243, 199, 0.8) !important;
}

/* En-têtes de tableau - Dégradé multicolore */
[class*="Dashboard"] table thead {
  background: linear-gradient(135deg, #f97316 0%, #ec4899 33%, #8b5cf6 66%, #3b82f6 100%) !important;
  background-size: 300% 300% !important;
  animation: gradientShift 4s ease infinite !important;
}

[class*="Dashboard"] table th {
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-size: 0.75rem !important;
  color: white !important;
  padding: 1rem !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
}

/* Lignes de tableau */
[class*="Dashboard"] table tbody tr {
  transition: all 0.2s ease !important;
  border-bottom: 1px solid #fed7aa !important;
  background: white !important;
}

[class*="Dashboard"] table tbody tr:hover {
  background: linear-gradient(90deg, #fff7ed 0%, #ffedd5 50%, #fed7aa 100%) !important;
  transform: scale(1.01) !important;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.15) !important;
}

[class*="Dashboard"] table td {
  padding: 1rem !important;
  color: #1c1917 !important;
  background: white !important;
}

/* ============================================
   FORMULAIRES
   ============================================ */

/* Inputs */
[class*="Dashboard"] input,
[class*="Dashboard"] select,
[class*="Dashboard"] textarea {
  background: white !important;
  border-radius: 8px !important;
  border: 2px solid #fed7aa !important;
  transition: all 0.2s ease !important;
  padding: 0.75rem !important;
  color: #1c1917 !important;
}

[class*="Dashboard"] input:focus,
[class*="Dashboard"] select:focus,
[class*="Dashboard"] textarea:focus {
  border-color: #f97316 !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15), 0 2px 4px rgba(249, 115, 22, 0.1) !important;
  outline: none !important;
  background: #fff7ed !important;
}

/* ============================================
   BADGES ET STATUTS
   ============================================ */

/* Badges */
[class*="Dashboard"] [class*="Badge"],
[class*="Dashboard"] [class*="badge"] {
  border-radius: 6px !important;
  font-weight: 500 !important;
  padding: 0.25rem 0.75rem !important;
  font-size: 0.75rem !important;
}

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

/* Animation d'apparition */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

[class*="Dashboard"] [class*="Card"],
[class*="Dashboard"] [role="tabpanel"] {
  animation: fadeInUp 0.5s ease-out !important;
}

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

@media (max-width: 768px) {
  [class*="Dashboard"] [class*="grid"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
  
  [class*="Dashboard"] [class*="grid"] > div {
    padding: 1rem !important;
  }
  
  [class*="Dashboard"] h1 {
    font-size: 1.5rem !important;
  }
}

/* ============================================
   AMÉLIORATIONS SPÉCIFIQUES COMMERCIAL
   ============================================ */

/* Dashboard Commercial - Section fonctionnalités */
[class*="CommercialDashboard"] [class*="grid"][class*="grid-cols-3"] > div {
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%) !important;
  border-left: 4px solid #f97316 !important;
  box-shadow: 0 2px 4px rgba(249, 115, 22, 0.08) !important;
}

[class*="CommercialDashboard"] [class*="grid"][class*="grid-cols-3"] > div:hover {
  border-left-color: #ea580c !important;
  border-left-width: 5px !important;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%) !important;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15) !important;
  transform: translateX(4px) !important;
}

/* ============================================
   AMÉLIORATIONS SPÉCIFIQUES ADMIN
   ============================================ */

/* Dashboard Admin - Section activité récente */
[class*="AdminDashboard"] [class*="space-y-4"] > div {
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%) !important;
  border-radius: 12px !important;
  padding: 1.25rem !important;
  border-left: 4px solid #f97316 !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 4px rgba(249, 115, 22, 0.08) !important;
}

[class*="AdminDashboard"] [class*="space-y-4"] > div:hover {
  border-left-width: 5px !important;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15) !important;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%) !important;
  transform: translateX(4px) !important;
}

/* Actions rapides */
[class*="AdminDashboard"] button[class*="w-full"][class*="text-left"] {
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
}

[class*="AdminDashboard"] button[class*="w-full"][class*="text-left"]:hover {
  background: linear-gradient(90deg, #fff7ed 0%, #ffedd5 100%) !important;
  border-color: #f97316 !important;
  transform: translateX(4px) !important;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.15) !important;
}

/* ============================================
   RÈGLES GÉNÉRALES ANTI-GRIS
   ============================================ */

/* Forcer tous les textes gris à être orange/brun clair */
[class*="Dashboard"] [class*="text-gray"],
[class*="Dashboard"] [class*="text-slate"],
[class*="Dashboard"] [class*="text-zinc"] {
  color: #f97316 !important;
  opacity: 0.8 !important;
}

/* Forcer tous les fonds gris à être blanc */
[class*="Dashboard"] [class*="bg-gray-50"],
[class*="Dashboard"] [class*="bg-gray-100"],
[class*="Dashboard"] [class*="bg-gray-200"],
[class*="Dashboard"] [class*="bg-slate-50"],
[class*="Dashboard"] [class*="bg-slate-100"],
[class*="Dashboard"] [class*="bg-zinc-50"],
[class*="Dashboard"] [class*="bg-zinc-100"] {
  background: #ffffff !important;
}

[class*="Dashboard"] [class*="bg-gray-50"]:hover,
[class*="Dashboard"] [class*="bg-gray-100"]:hover,
[class*="Dashboard"] [class*="bg-gray-200"]:hover {
  background: #fff7ed !important;
}

/* Forcer toutes les bordures grises à être orange clair */
[class*="Dashboard"] [class*="border-gray"],
[class*="Dashboard"] [class*="border-slate"],
[class*="Dashboard"] [class*="border-zinc"] {
  border-color: rgba(254, 243, 199, 0.8) !important;
}

/* Sections avec fond gris */
[class*="Dashboard"] section[class*="bg-gray"],
[class*="Dashboard"] div[class*="bg-gray"],
[class*="Dashboard"] main[class*="bg-gray"] {
  background: #ffffff !important;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 247, 237, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(255, 237, 213, 0.3) 0%, transparent 50%) !important;
}

/* Cibler spécifiquement les classes Tailwind grises courantes */
[class*="Dashboard"] .bg-gray-50,
[class*="Dashboard"] .bg-gray-100,
[class*="Dashboard"] .bg-gray-200,
[class*="Dashboard"] .bg-gray-300,
[class*="Dashboard"] .bg-slate-50,
[class*="Dashboard"] .bg-slate-100,
[class*="Dashboard"] .bg-slate-200,
[class*="Dashboard"] .bg-zinc-50,
[class*="Dashboard"] .bg-zinc-100,
[class*="Dashboard"] .bg-zinc-200 {
  background-color: #ffffff !important;
  background-image: none !important;
}

[class*="Dashboard"] .bg-gray-50:hover,
[class*="Dashboard"] .bg-gray-100:hover,
[class*="Dashboard"] .bg-gray-200:hover {
  background-color: #fff7ed !important;
}

/* Textes gris -> orange */
[class*="Dashboard"] .text-gray-400,
[class*="Dashboard"] .text-gray-500,
[class*="Dashboard"] .text-gray-600,
[class*="Dashboard"] .text-gray-700,
[class*="Dashboard"] .text-slate-400,
[class*="Dashboard"] .text-slate-500,
[class*="Dashboard"] .text-slate-600,
[class*="Dashboard"] .text-zinc-400,
[class*="Dashboard"] .text-zinc-500,
[class*="Dashboard"] .text-zinc-600 {
  color: #f97316 !important;
  opacity: 0.8 !important;
}

/* Bordures grises -> orange clair */
[class*="Dashboard"] .border-gray-200,
[class*="Dashboard"] .border-gray-300,
[class*="Dashboard"] .border-slate-200,
[class*="Dashboard"] .border-slate-300,
[class*="Dashboard"] .border-zinc-200,
[class*="Dashboard"] .border-zinc-300 {
  border-color: rgba(254, 243, 199, 0.8) !important;
}

/* Tous les divs et sections sans classe spécifique qui ont un fond par défaut gris */
[class*="Dashboard"] > div:not([class*="bg-"]):not([class*="grid"]),
[class*="Dashboard"] > section:not([class*="bg-"]) {
  background: transparent !important;
}

/* Conteneur principal - forcer le fond blanc */
[class*="Dashboard"] main,
[class*="Dashboard"] [role="main"] {
  background: #ffffff !important;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 247, 237, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(255, 237, 213, 0.3) 0%, transparent 50%) !important;
}
