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

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Tahoma', 'MS Sans Serif', sans-serif;
    overflow: hidden;
    cursor: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABCDAMAAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAA70lEQVQoU5WSMQ6CQBBFB0SwxE6wttXCRgvwBNbY2UjLHYyZe2hrhQexE0u0MOA+7OLAJrPJJn9m3r/zZ1gAXWCUzp8AS2AOdNP2ATBJuy2wSfsl8AamQKt2qk/2Q8AG6P0YfQDRjgq3twZYAo8vR3fABnieInQEloAHYF1rgIu/FtjXGqBdacBzfr2qNcC+1gD7WgPsa42dX6zS9gPQrNwjh6CfvhfACnBuNVe7lsAT6LrTXO1aAXfA8bVrBTwA50entu9xGa01wNVfi++7JRCdNfRj8Ra4+xPfvyGGfxBL3ZfAGpgBQ+ADlMN6u3bK8owAAAAASUVORK5CYII='), auto;
}

.windows-xp-desktop {
    width: 100vw;
    height: 100vh;
    position: relative;
    font-size: 12px;
    background: linear-gradient(to bottom, #87CEEB 0%, #87CEEB 40%, #90EE90 40%, #228B22 100%);
}

.desktop-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/api/retrodiffusion/image/512/512?prompt=windows+xp+bliss+wallpaper+rolling+green+hills+blue+sky+white+clouds');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.desktop-icon {
    cursor: pointer;
    width: 64px;
    text-align: center;
    padding: 4px;
    border-radius: 2px;
    transition: background-color 0.2s;
    z-index: 10;
    position: relative;
}

.desktop-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.dialog-box {
    background: #ECE9D8;
    border: 1px solid #0054E3;
    border-radius: 8px 8px 0 0;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    min-width: 280px;
    cursor: move;
}

.dialog-titlebar {
    background: linear-gradient(to bottom, #0997FF 0%, #0054E3 100%);
    color: white;
    height: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
    border-radius: 8px 8px 0 0;
    font-size: 11px;
    cursor: move;
}

.close-button {
    background: #C0C0C0;
    border: 1px outset #C0C0C0;
    width: 16px;
    height: 14px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.close-button:hover {
    background: #E0E0E0;
}

.close-button:active {
    border: 1px inset #C0C0C0;
}

.dialog-content {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ECE9D8;
}

.dialog-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.dialog-message {
    font-size: 11px;
    color: #000;
    line-height: 1.3;
}

.dialog-buttons {
    padding: 8px 16px 16px;
    display: flex;
    justify-content: center;
    background: #ECE9D8;
}

.dialog-button {
    background: linear-gradient(to bottom, #F0F0F0 0%, #C0C0C0 100%);
    border: 1px outset #C0C0C0;
    padding: 4px 20px;
    font-size: 11px;
    cursor: pointer;
    font-family: 'Tahoma', 'MS Sans Serif', sans-serif;
    color: #000;
    min-width: 75px;
}

.dialog-button:hover {
    background: linear-gradient(to bottom, #F8F8F8 0%, #D0D0D0 100%);
}

.dialog-button:active {
    border: 1px inset #C0C0C0;
    background: linear-gradient(to bottom, #D0D0D0 0%, #F0F0F0 100%);
}

.control-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 84, 227, 0.9);
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #0054E3;
    min-width: 180px;
    z-index: 100;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, #245EDC 0%, #1F3A93 100%);
    border-top: 1px solid #4A90E2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
    z-index: 200;
}

.start-button {
    background: linear-gradient(to bottom, #73B2F5 0%, #245EDC 100%);
    border: 1px outset #4A90E2;
    color: white;
    font-weight: bold;
    padding: 2px 12px;
    font-size: 11px;
    cursor: pointer;
    border-radius: 2px;
    font-family: 'Tahoma', 'MS Sans Serif', sans-serif;
}

.start-button:hover {
    background: linear-gradient(to bottom, #83C2FF 0%, #2F5FDC 100%);
}

.start-button:active {
    border: 1px inset #4A90E2;
}

.system-tray {
    color: white;
    font-size: 11px;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 8px;
    border: 1px inset #4A90E2;
}

.start-menu {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 200px;
    background: #ECE9D8;
    border: 1px solid #0054E3;
    border-radius: 0 8px 0 0;
    box-shadow: 2px -2px 8px rgba(0, 0, 0, 0.3);
    z-index: 300;
}

.start-menu-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 11px;
    border-bottom: 1px solid #D4D0C8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.start-menu-item:hover {
    background: #316AC5;
    color: white;
}

.start-menu-item:last-child {
    border-bottom: none;
    border-radius: 0 8px 0 0;
}

/* Animations */
@keyframes dialogAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.dialog-box {
    animation: dialogAppear 0.2s ease-out;
}

/* Scrollbar styling for authentic XP look */
::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    background: #ECE9D8;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #F0F0F0 0%, #C0C0C0 100%);
    border: 1px outset #C0C0C0;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #F8F8F8 0%, #D0D0D0 100%);
}