/* ========================
   W's Physics - custom scrollbar (whole site)
   Chrome / Edge / Safari use the ::-webkit-scrollbar rules (slim red pill).
   Firefox gets the standard thin scrollbar in the same colours.
   Elements with their own scrollbar rules (e.g. the exam question list) keep them.
   ======================== */
:root {
    --sb-thumb: rgba(220, 38, 38, 0.45);
    --sb-thumb-hover: #dc2626;
    --sb-track: transparent;
}
.dark {
    --sb-thumb: rgba(248, 113, 113, 0.35);
    --sb-thumb-hover: #f87171;
}

/* Firefox (and any browser without ::-webkit-scrollbar) */
@supports not selector(::-webkit-scrollbar) {
    * {
        scrollbar-width: thin;
        scrollbar-color: var(--sb-thumb) var(--sb-track);
    }
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--sb-track);
}
::-webkit-scrollbar-thumb {
    background-color: var(--sb-thumb);
    border: 3px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
    min-height: 40px;
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--sb-thumb-hover);
    border-width: 2px;
}
::-webkit-scrollbar-thumb:active {
    background-color: var(--sb-thumb-hover);
}
::-webkit-scrollbar-corner {
    background: transparent;
}
