* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: "Segoe UI", Tahoma, sans-serif;
    overflow: hidden;
    height: 100vh;
    background: url('https://4kwallpapers.com/images/wallpapers/windows-7-official-3840x2160-13944.jpg') center/cover no-repeat fixed;
    color: #000;
}

#desktop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 50px;
    overflow: hidden;
}

/* Desktop Icons */
.desktop-icon {
    position: absolute;
    width: 80px;
    text-align: center;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
    cursor: pointer;
    user-select: none;
}
.desktop-icon img { display: block; margin: 0 auto 5px; }
.desktop-icon span { font-size: 12.5px; }

/* Windows */
.window {
    position: absolute;
    background: rgba(245,245,255,0.92);
    border: 1px solid #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.45), inset 0 0 30px rgba(255,255,255,0.7);
    border-radius: 6px;
    overflow: hidden;
    display: none;
    resize: both;
}

.title-bar {
    background: linear-gradient(to right, #0a3d9e, var(--accent));
    color: white;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    font-weight: bold;
}

.title-buttons button {
    background: rgba(255,255,255,0.25);
    border: none;
    color: white;
    width: 24px;
    height: 24px;
    margin-left: 4px;
    border-radius: 3px;
    font-size: 13px;
}

.window-content {
    padding: 18px;
    height: calc(100% - 34px);
    overflow: auto;
}

/* Taskbar */
#taskbar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50px;
    background: linear-gradient(to bottom, rgba(20,20,40,0.85), rgba(10,10,30,0.95));
    border-top: 2px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    padding: 0 4px;
    z-index: 9999;
}

.start-button {
    width: 58px;
    height: 46px;
    background: radial-gradient(circle at 35% 35%, #fff, #4a8eff 35%, #0a2b7a);
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2px 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4), inset 0 4px 10px rgba(255,255,255,0.6);
    cursor: pointer;
}

.quick-launch { display: flex; gap: 8px; padding: 0 10px; }
.system-tray { color: white; font-size: 13px; padding: 0 15px; margin-left: auto; }

/* Start Menu - Windows 7 style */
.start-menu {
    display: none;
    position: absolute;
    bottom: 54px;
    left: 8px;
    width: 580px;
    height: 460px;
    background: linear-gradient(#0f2a5e, #1e3a8a);
    border: 2px solid #a0c4ff;
    box-shadow: 0 15px 45px rgba(0,0,0,0.7);
    border-radius: 6px 6px 0 0;
    overflow: hidden;
    z-index: 10000;
    color: white;
    flex-direction: column;
}

.start-header {
    height: 90px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 15px;
}

.user-picture {
    width: 80px;
    height: 80px;
    border: 3px solid rgba(255,255,255,0.8);
    border-radius: 6px;
    object-fit: cover;
}

.username {
    font-size: 18px;
    font-weight: bold;
}

.start-body {
    display: flex;
    flex: 1;
}

.start-left {
    width: 290px;
    padding: 10px 0;
    background: rgba(0,0,0,0.2);
}

.start-left ul { list-style: none; }

.start-left li {
    padding: 6px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 13.5px;
}

.start-left li:hover { background: rgba(255,255,255,0.25); }

.all-programs {
    padding: 10px 18px;
    font-weight: bold;
    cursor: pointer;
}

.start-right {
    flex: 1;
    padding: 12px 20px;
}

.start-right ul { list-style: none; }

.start-right li {
    padding: 7px 10px;
    cursor: pointer;
    font-size: 13.5px;
}

.start-right li:hover { background: #1e4a9e; }

.start-bottom {
    height: 52px;
    background: #0f2a5e;
    border-top: 1px solid #a0c4ff;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 12px;
}

.search-box input {
    flex: 1;
    height: 32px;
    padding: 0 12px;
    background: white;
    border: 1px solid #666;
    border-radius: 3px;
    color: #000;
}

.shutdown {
    padding: 6px 18px;
    background: #1e3a8a;
    border: 1px solid #a0c4ff;
    border-radius: 3px;
    cursor: pointer;
}

/* Cursor Trail */
#cursor-trail {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 99999;
}
.trail-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, #e0b0ff, var(--accent), transparent);
    border-radius: 50%;
    opacity: 0.75;
    transform: translate(-50%, -50%);
    animation: trailFade 0.85s forwards;
}
@keyframes trailFade { to { opacity: 0; transform: translate(-50%, -50%) scale(0.3); } }