/* WPS Portal — minimal custom CSS. Tailwind covers 99%; this is for what utilities can't elegantly express. */

html {
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "cv11", "ss01", "ss03";
}

/* Scrollbar — subtle, modern. */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(100, 116, 139, 0.25); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(100, 116, 139, 0.45); background-clip: padding-box; border: 2px solid transparent; }
html.dark ::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.18); background-clip: padding-box; border: 2px solid transparent; }
html.dark ::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.35); background-clip: padding-box; border: 2px solid transparent; }

/* Range input theming */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
  transition: box-shadow 150ms;
}
input[type="range"]::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.25);
}

/* Loader spin for any `lucide-loader` icons */
[data-lucide="loader"], i[data-lucide="loader"] {
  animation: wps-spin 1.2s linear infinite;
  transform-origin: center;
}
@keyframes wps-spin {
  to { transform: rotate(360deg); }
}

/* Subtle fade-in for content swaps via Alpine x-transition */
@keyframes wps-fade-in {
  from { opacity: 0; transform: translateY(2px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Apex tooltip override to play nice with dark mode */
.apexcharts-tooltip {
  border-radius: 8px !important;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.35) !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
}
.apexcharts-tooltip.apexcharts-theme-dark {
  background: rgb(15, 23, 42) !important;
}

/* Prose tweaks (so `prose-invert` doesn't override our italic exec summary too aggressively) */
.prose :where(p):not(:where([class~="not-prose"] *)) {
  margin-top: 0.6em;
  margin-bottom: 0.6em;
}

/* Focus ring polish — keyboard only */
:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
button:focus-visible,
a:focus-visible {
  outline-offset: 3px;
  border-radius: 6px;
}

/* Truncated multiline (used in card subtitles if needed) */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
