/* Premium Windows 11 Desktop */
html,
body {
    height: 100%;
    overflow: hidden;
}

/* Wallpaper with subtle zoom animation */
#wallpaper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
    transform: scale(1.02);
    filter: brightness(0.9);
    animation: wallpaperFloat 30s ease-in-out infinite alternate;
}

@keyframes wallpaperFloat {
    0% {
        transform: scale(1.02) translate(0, 0);
    }

    100% {
        transform: scale(1.05) translate(-1%, -1%);
    }
}

/* Desktop Area */
#desktop-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - var(--taskbar-height));
    z-index: var(--z-desktop);
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 4px;
}

/* Desktop Icons - Premium Win11 Style */
.desktop-icon {
    width: 74px;
    height: 86px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 4px;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: default;
    color: var(--text-primary);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
    transition: all 0.15s var(--ease-out-expo);
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.desktop-icon:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.1);
}

.desktop-icon img {
    width: 40px;
    height: 40px;
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    transition: transform 0.2s var(--ease-out-back);
}

.desktop-icon:hover img {
    transform: scale(1.1);
}

.desktop-icon span {
    font-size: 11px;
    font-weight: 400;
    text-align: center;
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ═══════════════════════════════════════
   TASKBAR - Premium Centered Win11 Style
   ═══════════════════════════════════════ */
#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--taskbar-height);
    background: var(--taskbar-bg);
    backdrop-filter: var(--mica-blur);
    -webkit-backdrop-filter: var(--mica-blur);
    border-top: 1px solid var(--mica-border);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-taskbar);
    gap: 4px;
}

/* Acrylic noise overlay */
#taskbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--acrylic-noise);
    pointer-events: none;
    opacity: 0.5;
}

.taskbar-item {
    position: relative;
    width: 44px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.1s ease;
    z-index: 1;
}

.taskbar-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.taskbar-item:active {
    background: rgba(255, 255, 255, 0.04);
    transform: scale(0.92);
}

.taskbar-item img {
    width: 24px;
    height: 24px;
    transition: transform 0.2s var(--ease-out-back);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.taskbar-item:hover img {
    transform: scale(1.15) translateY(-2px);
}

/* Active indicator - pill style */
.taskbar-item.active::after {
    content: '';
    position: absolute;
    bottom: 3px;
    width: 6px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--accent-color);
    transition: width 0.2s var(--ease-out-expo);
}

.taskbar-item.active:hover::after {
    width: 16px;
}

/* ═══════════════════════════════════════
   BOOT SCREEN - Premium Win11 Loading
   ═══════════════════════════════════════ */
#boot-screen {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: var(--z-boot);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#boot-screen.fade-out {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

.boot-logo {
    font-family: var(--font-main);
    font-size: clamp(32px, 8vw, 72px);
    font-weight: 700;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #60cdff 0%, #0078d4 50%, #60cdff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
    margin-bottom: 60px;
    text-shadow: 0 0 60px rgba(96, 205, 255, 0.3);
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.boot-loader {
    position: relative;
    width: 40px;
    height: 40px;
}

/* Win11 style loading dots */
.boot-loader::before,
.boot-loader::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    animation: dotPulse 1.4s ease-in-out infinite;
}

.boot-loader::before {
    left: 0;
    animation-delay: 0s;
}

.boot-loader::after {
    right: 0;
    animation-delay: 0.2s;
}

@keyframes dotPulse {

    0%,
    80%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    40% {
        opacity: 1;
        transform: scale(1);
    }
}

.boot-text {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
}