/* Theme transition effects - COMPLETELY DISABLED FOR INSTANT SWITCH */

/* Prevent flash of wrong theme */
html:not([data-theme]) {
    visibility: hidden;
}

html[data-theme] {
    visibility: visible;
}

/* Disable theme transitions without freezing loaders and progress indicators. */
*,
*::before,
*::after,
.mud-paper,
.mud-card,
.mud-table,
.mud-drawer,
.mud-appbar,
.mud-main-content,
[class*="mud-"],
body,
html {
    transition: none !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
}

/* Force GPU acceleration for instant rendering */
html,
body {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
