/* Base Reset & Variables */
:root {
    /* Colors */
    --system-font: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --bg-boot: #000000;
    --win-blue: #00a4ef;
    --win-dark: #202020;
    
    /* Z-Index Strategy */
    --z-error: 9999;
    --z-boot: 9000;
    --z-login: 8000;
    --z-taskbar: 2000;
    --z-desktop-icons: 1000;
    
    /* Animation Constants (aligned with AnimationController) */
    --ease-win: cubic-bezier(0.33, 1, 0.68, 1); /* Customize easing here */
    --duration-fast: 200ms;
    --duration-normal: 400ms;
    --duration-slow: 800ms;
}

* {
    box-sizing: border-box;
    user-select: none; /* OS-like behavior */
    cursor: default;
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* No scrollbars for the OS container */
    font-family: var(--system-font);
    background-color: var(--bg-boot);
}

.hidden {
    display: none !important;
}

.fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-normal) var(--ease-win);
}

.fade-in {
    opacity: 1;
    pointer-events: auto;
    transition: opacity var(--duration-normal) var(--ease-win);
}

/* Error Layer (BSOD) */
.error-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0078d7;
    color: white;
    z-index: var(--z-error);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bsod-container {
    max-width: 600px;
    padding: 2rem;
}

.bsod-face {
    font-size: 6rem;
    margin-bottom: 2rem;
}

.bsod-text {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 2rem;
}
