/* ==================== SUBTLE SCROLLBARS STYLING ==================== */

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

/* Chrome, Safari, Edge */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 4px;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.5);
}

::-webkit-scrollbar-thumb:active {
  background: rgba(99, 102, 241, 0.7);
}

/* Dark mode */
[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 255, 0.2);
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 255, 0.4);
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:active {
  background: rgba(148, 163, 255, 0.6);
}

/* Scrollbars dans les containers spécifiques */
.custom-scroll::-webkit-scrollbar {
  width: 6px;
}

.custom-scroll::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.25);
  border-radius: 3px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.45);
}

/* Pour tous les divs avec overflow */
[style*="overflow-y: auto"]::-webkit-scrollbar {
  width: 7px;
}

[style*="overflow-y: auto"]::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.28);
  border-radius: 3px;
}

[style*="overflow-y: auto"]::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.48);
}

/* Cards et modales */
.card-body::-webkit-scrollbar {
  width: 7px;
}

.card-body::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.25);
  border-radius: 3px;
}

.modal-body::-webkit-scrollbar {
  width: 7px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.25);
  border-radius: 3px;
}
