@import url('https://fonts.googleapis.com/css2?family=Tahoma:wght@400;700&display=swap');

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

body {
    font-family: 'Tahoma', sans-serif;
    font-size: 11px;
    overflow: hidden;
    background: url('bliss-wallpaper.png') no-repeat center center;
    background-size: cover;
    height: 100vh;
    cursor: default;
    user-select: none;
}

#desktop {
    width: 100vw;
    height: 100vh;
    position: relative;
}

#desktop-icons {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 75px;
    padding: 8px;
    cursor: pointer;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    border-radius: 2px;
    transition: background-color 0.2s;
}

.desktop-icon:hover {
    background-color: rgba(0, 100, 200, 0.3);
}

.desktop-icon.selected {
    background-color: rgba(0, 100, 200, 0.5);
}

.desktop-icon img {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
}

.desktop-icon span {
    text-align: center;
    font-size: 11px;
    line-height: 1.2;
}

#taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, #3d95ff 0%, #1e5799 50%, #2989d8 51%, #1e5799 100%);
    border-top: 1px solid #4a90e2;
    display: flex;
    align-items: center;
    z-index: 1000;
}

#start-button {
    display: flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    background: linear-gradient(to bottom, #7db46c 0%, #60975f 100%);
    border: 1px outset #7db46c;
    border-radius: 3px;
    margin: 1px 4px;
    cursor: pointer;
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

#start-button:active {
    border: 1px inset #7db46c;
}

#start-button img {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

#taskbar-items {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 4px;
    gap: 2px;
}

.taskbar-item {
    height: 22px;
    padding: 0 8px;
    background: linear-gradient(to bottom, #c9d8f0 0%, #9bb7e6 100%);
    border: 1px outset #c9d8f0;
    border-radius: 2px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 11px;
    color: #000;
    max-width: 160px;
    overflow: hidden;
    white-space: nowrap;
}

.taskbar-item:active,
.taskbar-item.active {
    border: 1px inset #c9d8f0;
    background: linear-gradient(to bottom, #9bb7e6 0%, #c9d8f0 100%);
}

.taskbar-item img {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

#system-tray {
    height: 28px;
    background: linear-gradient(to bottom, #c9d8f0 0%, #9bb7e6 100%);
    border: 1px inset #c9d8f0;
    margin: 1px 4px 1px 0;
    display: flex;
    align-items: center;
    padding: 0 8px;
}

#clock {
    font-size: 11px;
    color: #000;
    min-width: 60px;
    text-align: center;
}

#start-menu {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 300px;
    background: linear-gradient(to right, #2563eb 0%, #3b82f6 40%, #f8fafc 40%, #f8fafc 100%);
    border: 2px outset #e2e8f0;
    border-radius: 8px 8px 0 0;
    z-index: 2000;
    font-size: 11px;
}

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

.start-menu-header {
    height: 60px;
    background: linear-gradient(45deg, #2563eb, #3b82f6);
    display: flex;
    align-items: flex-end;
    padding: 8px 12px;
    border-radius: 6px 6px 0 0;
}

.start-menu-user {
    display: flex;
    align-items: center;
    color: white;
    font-weight: bold;
}

.start-menu-user img {
    width: 32px;
    height: 32px;
    margin-right: 8px;
}

.start-menu-content {
    padding: 8px 0;
    background: #f8fafc;
}

.start-menu-item {
    display: flex;
    align-items: center;
    padding: 6px 16px 6px 50px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.start-menu-item:hover {
    background: linear-gradient(to right, #3b82f6, #60a5fa);
    color: white;
}

.start-menu-item img {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.start-menu-separator {
    height: 1px;
    background: #cbd5e1;
    margin: 4px 16px 4px 50px;
}

.start-menu-section-title {
    padding: 6px 16px 6px 50px;
    font-weight: bold;
    color: #666;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.window {
    position: absolute;
    background: #f0f0f0;
    border: 2px outset #c0c0c0;
    border-radius: 4px 4px 0 0;
    min-width: 300px;
    min-height: 200px;
    z-index: 100;
}

.window.active {
    z-index: 200;
}

.window-titlebar {
    height: 26px;
    background: linear-gradient(to bottom, #4a90e2 0%, #2e5bb8 100%);
    display: flex;
    align-items: center;
    padding: 0 8px;
    cursor: move;
    border-radius: 2px 2px 0 0;
}

.window-titlebar.inactive {
    background: linear-gradient(to bottom, #808080 0%, #606060 100%);
}

.window-title {
    flex: 1;
    color: white;
    font-weight: bold;
    font-size: 11px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
}

.window-title img {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

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

.window-control {
    width: 16px;
    height: 14px;
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: bold;
}

.window-control:active {
    border: 1px inset #c0c0c0;
}

.window-control.minimize::after { content: '−'; }
.window-control.maximize::after { content: '□'; }
.window-control.close::after { content: '×'; }

.window-content {
    padding: 8px;
    height: calc(100% - 26px);
    overflow: auto;
    background: white;
}

.hidden {
    display: none;
}