/* Music School Management System — small overrides on top of Tailwind */

html { scroll-behavior: smooth; }

/* Native form controls (select dropdown popup, date pickers, scrollbars) render
   outside the page box and ignore Tailwind `dark:` classes. They follow
   `color-scheme` instead, so tell the browser which scheme is active. */
html.dark { color-scheme: dark; }
html:not(.dark) { color-scheme: light; }

/* Chrome/Edge paint the <select> popup with the OS widget colours and ignore
   color-scheme on some builds, so the option list still comes out white with
   pale text. Painting the options explicitly is the only reliable fix.
   ink-850 (#0f1526) matches the ink palette used by the panels. */
html.dark select option {
    background-color: #0f1526;
    color: #e2e8f0;
}
html.dark select option:checked {
    background-color: #1e2740;
    color: #ffffff;
}
/* The closed <select> box itself: white/5 over the dark page reads as a light
   block in some builds, so pin it to the ink panel colour. */
html.dark select {
    background-color: #0f1526;
    color: #e2e8f0;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, .35); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, .55); }

/* Skeleton loading */
.skeleton {
    position: relative;
    overflow: hidden;
    background: rgba(148, 163, 184, .15);
    border-radius: .75rem;
}
.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
    animation: skeleton 1.4s infinite;
}
@keyframes skeleton { 100% { transform: translateX(100%); } }

/* Subtle entrance */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .35s ease both; }
