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

body {
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    background-image: linear-gradient(135deg, #020d04, #00ff41);
    color: #fff;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
}

/* Desktop */
.desktop {
    flex: 1;
    position: relative;
    padding: 20px;
    z-index: 1;
}

.desktop-icons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100px;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    text-align: center;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.desktop-icon i {
    font-size: 2rem;
    margin-bottom: 8px;
    color: #a8b2d1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.desktop-icon span {
    font-size: 0.8rem;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Start Menu */
.start-menu {
    position: absolute;
    bottom: 60px;
    left: 20px;
    width: 250px;
    background: rgba(15, 15, 25, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 10000;
    transform-origin: bottom left;
    animation: menuOpen 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.start-menu.active {
    display: flex;
}

@keyframes menuOpen {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.start-menu-header {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.start-menu-header h3 {
    color: #00ff41;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.start-menu-apps {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.start-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    color: #e2e8f0;
}

.start-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.start-menu-item i {
    font-size: 1.2rem;
    color: #a8b2d1;
    width: 20px;
    text-align: center;
}

/* Taskbar / Dock */
.taskbar {
    height: 50px;
    background: rgba(15, 15, 25, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.start-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.start-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.start-btn i {
    font-size: 1.5rem;
    color: #00d2ff;
}

.taskbar-apps {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.taskbar-app {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.3s, transform 0.2s;
    position: relative;
}

.taskbar-app:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.taskbar-app.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    width: 20px;
    height: 3px;
    background: #00d2ff;
    border-radius: 3px;
}

.taskbar-tray {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.taskbar-tray i {
    cursor: pointer;
    transition: color 0.2s;
}

.taskbar-tray i:hover {
    color: #fff;
}

.clock {
    font-weight: 500;
    margin-left: 10px;
    cursor: default;
}

/* Windows */
.window {
    position: absolute;
    width: 600px;
    height: 400px;
    background: rgba(20, 20, 30, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    /* initial placement will be handled by JS */
    animation: windowOpen 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes windowOpen {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.window-header {
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    cursor: grab;
    user-select: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.window-header:active {
    cursor: grabbing;
}

.window-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #f1f5f9;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control-btn {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.btn-close {
    background: #ff5f56;
}

.btn-minimize {
    background: #ffbd2e;
}

.btn-maximize {
    background: #27c93f;
}

.control-btn i {
    font-size: 8px;
    color: #000;
    opacity: 0;
    transition: opacity 0.2s;
}

.window-controls:hover .control-btn i {
    opacity: 1;
}

.window-content {
    flex: 1;
    overflow: auto;
    padding: 20px;
    position: relative;
    color: #cbd5e1;
}

.window-content-inner h3 {
    margin-bottom: 10px;
    color: #fff;
}

.window-content-inner p {
    line-height: 1.5;
}