/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

 .prose {
  @apply prose prose-lg prose-blue max-w-none;
}

.prose h1 {
  @apply text-3xl font-bold text-gray-900 p-4;
}

.prose h2 {
  @apply text-2xl font-semibold text-gray-800 p-4;
}

.prose p {
  @apply text-gray-700 leading-relaxed p-4;

  margin-bottom: 1em; /* Ajoute un espace entre les paragraphes */

}

.prose ul {
  @apply list-disc list-inside p-4;
}

.prose li {
  @apply p-2
}


.prose ol {
  @apply list-decimal list-inside p-4;
}

.prose code {
  @apply bg-gray-100 text-red-600 px-1 rounded;
}

.prose pre {
  @apply bg-gray-800 text-white p-4 rounded-md overflow-x-auto;
}

/* Turbo top progress bar (turbo-loading controller on body) */
.turbo-loading #turbo-loading-indicator {
  opacity: 1;
  transform: scaleX(1);
}

@keyframes turbo-progress {
  0% { width: 0%; }
  100% { width: 100%; }
}

.turbo-loading #turbo-loading-indicator::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.3);
  animation: turbo-progress 2s ease-out;
}

/* Admin sortable table headers */
.sortable {
  cursor: pointer;
  user-select: none;
}

.sortable:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.sort-icon {
  opacity: 0.3;
  transition: opacity 0.2s, transform 0.2s;
}

.sortable:hover .sort-icon {
  opacity: 0.5;
}

.sortable.sort-asc .sort-icon {
  opacity: 1;
  transform: rotate(180deg);
}

.sortable.sort-desc .sort-icon {
  opacity: 1;
}

/* Sidebar / drawer nav scrollbar — soft gray, always readable on white. */
.nav-scroll {
  scrollbar-gutter: stable;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #9ca3af #f3f4f6; /* thumb gray-400, track gray-100 */
}

.nav-scroll::-webkit-scrollbar {
  width: 8px;
}

.nav-scroll::-webkit-scrollbar-track {
  background: #f3f4f6; /* gray-100 — matches shell borders */
  border-radius: 9999px;
  margin: 4px 0;
}

.nav-scroll::-webkit-scrollbar-thumb {
  background-color: #d1d5db; /* gray-300 */
  border-radius: 9999px;
  border: 2px solid #f3f4f6;
  background-clip: padding-box;
}

.nav-scroll:hover::-webkit-scrollbar-thumb {
  background-color: #9ca3af; /* gray-400 */
}

.nav-scroll::-webkit-scrollbar-thumb:active {
  background-color: #6b7280; /* gray-500 */
}
