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

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: sans-serif;
}

#desktop {
    width: 100%;
    height: calc(100% - 50px);
    background: url('background.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    padding: 20px;
}

#desktop-icons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100px;
}

#desktop-icons .icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 12px;
    text-align: center;
    width: 90px;
    height: 75px;
    gap: 5px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: background 0.2s, transform 0.1s;
}

#desktop-icons .icon-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: scale(1.02);
}

.window {
    position: absolute;
    width: 550px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.title-bar {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(5px);
    color: #ffffff;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.title {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.pin-btn {
    background: rgba(243, 156, 18, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(243, 156, 18, 0.4);
    color: rgb(245, 207, 94);
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    margin-left: auto;
    margin-right: 8px;
    opacity: 0.8;
    transition: background 0.2s;
}

.pin-btn:hover {
    background: rgba(243, 156, 18, 0.5);
}

.window.pinned .pin-btn {
    background: #d35400;
    border-color: #e67e22;
    color: #fff;
}

.close-btn {
    background: rgba(231, 76, 60, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(231, 76, 60, 0.4);
    color: #ff9f93;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.close-btn:hover {
    background: rgba(231, 76, 60, 0.6);
    color: white;
}

.window-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
}

.window-content iframe {
    width: 100%;
    height: 100%;
    background: transparent;
}

.notepad {
    width: 100%;
    height: 100%;
    border: none;
    padding: 15px;
    resize: none;
    font-family: monospace;
    font-size: 14px;
    outline: none;
    background: rgba(253, 246, 227, 0.15);
    color: #ffffff;
    backdrop-filter: blur(5px);
}

.notepad::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#taskbar {
    width: 100%;
    height: 50px;
    background: rgba(15, 15, 25, 0.4);
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    padding: 0 15px;
    position: absolute;
    bottom: 0;
    z-index: 2000;
}

.start-btn {
    background: rgba(52, 152, 219, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(52, 152, 219, 0.4);
    color: #e0f0ff;
    padding: 8px 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.start-btn:hover {
    background: rgba(52, 152, 219, 0.5);
}

#start-menu {
    position: absolute;
    bottom: 60px;
    left: 5px;
    width: 260px;
    background: rgba(25, 35, 45, 0.55);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 3000;
}

#start-menu.hidden {
    display: none;
}

.start-menu-header {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255,255,255,0.6);
    padding: 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.start-menu-items button {
    width: 100%;
    background: none;
    border: none;
    color: white;
    padding: 12px 15px;
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.15s;
}

.start-menu-items button:hover {
    background: rgba(52, 152, 219, 0.4);
}

.dock-icons {
    display: flex;
    gap: 8px;
    margin-left: 15px;
}

.dock-icons .icon-btn {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s, transform 0.1s;
}

.dock-icons .icon-btn:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-2px);
}   