/*
 * 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.
 */

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.svg-inline--fa {
  display: inline-block;
  height: 1em;
  overflow: visible;
  vertical-align: -0.125em;
}

/* Custom scrollbar for webkit browsers - theme aware */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgb(243 244 246); /* gray-100 */
}

::-webkit-scrollbar-thumb {
  background: rgb(156 163 175); /* gray-400 */
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(107 114 128); /* gray-500 */
}

/* Dark mode scrollbar */
[data-theme="dark"] ::-webkit-scrollbar-track {
  background: #1f2937; /* gray-800 */
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #4b5563; /* gray-600 */
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: #6b7280; /* gray-500 */
}

/* Focus styles for accessibility */
.focus-visible:focus {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}
