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

body {
    font-family: 'Tahoma', sans-serif;
    overflow: hidden;
    background: #3a6ea5;
    height: 100vh;
}

.desktop {
    width: 100%;
    height: 100vh;
    background: linear-gradient(to bottom, #3a6ea5 0%, #7db9e8 100%);
    position: relative;
}

.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, #3d95ff 0%, #0058e6 100%);
    border-top: 1px solid #5ca0ff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 1000;
}

.start-button {
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, #3d95ff 0%, #0058e6 100%);
    border: 1px outset #5ca0ff;
    padding: 2px 8px;
    cursor: pointer;
    font-weight: bold;
    color: white;
    font-size: 11px;
}

.start-button:hover {
    background: linear-gradient(to bottom, #5ca0ff 0%, #0078ff 100%);
}

.start-button:active {
    border: 1px inset #5ca0ff;
}

.start-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.taskbar-time {
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    background: linear-gradient(to bottom, #0058e6 0%, #003d9e 100%);
    border: 1px inset #5ca0ff;
}

.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;
    cursor: pointer;
    padding: 5px;
    width: 75px;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    border: 1px dotted white;
}

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

.desktop-icon span {
    color: white;
    font-size: 11px;
    text-align: center;
    text-shadow: 1px 1px 1px black;
}

.window {
    position: absolute;
    top: 50px;
    left: 50px;
    width: 600px;
    height: 500px;
    background: #ece9d8;
    border: 2px outset #ece9d8;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    min-width: 400px;
    min-height: 300px;
}

.window-header {
    background: linear-gradient(to right, #0058e6 0%, #3d95ff 100%);
    color: white;
    padding: 3px 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
}

.window-title {
    font-size: 11px;
    font-weight: bold;
}

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

.window-btn {
    width: 16px;
    height: 14px;
    background: #ece9d8;
    border: 1px outset #ece9d8;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.window-btn:hover {
    background: #ffffff;
}

.window-btn:active {
    border: 1px inset #ece9d8;
}

.window-content {
    height: calc(100% - 22px);
    padding: 10px;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-messages {
    flex: 1;
    background: white;
    border: 1px inset #ece9d8;
    padding: 10px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.chat-message {
    margin-bottom: 10px;
    padding: 5px;
    border-radius: 3px;
}

.chat-message.user {
    background: #e3f2fd;
    text-align: right;
}

.chat-message.assistant {
    background: #f5f5f5;
}

.chat-message strong {
    font-size: 11px;
    color: #0058e6;
}

.chat-message p {
    font-size: 11px;
    margin-top: 2px;
}

.chat-input-container {
    display: flex;
    gap: 5px;
}

.chat-input {
    flex: 1;
    padding: 3px;
    border: 1px inset #ece9d8;
    font-size: 11px;
    font-family: 'Tahoma', sans-serif;
}

.send-button {
    padding: 3px 15px;
    background: #ece9d8;
    border: 1px outset #ece9d8;
    font-size: 11px;
    cursor: pointer;
}

.send-button:hover {
    background: #ffffff;
}

.send-button:active {
    border: 1px inset #ece9d8;
}

.start-menu {
    position: fixed;
    bottom: 30px;
    left: 0;
    width: 300px;
    background: #ece9d8;
    border: 2px outset #ece9d8;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.start-menu-header {
    background: linear-gradient(to right, #0058e6 0%, #3d95ff 100%);
    padding: 10px;
    display: flex;
    align-items: center;
}

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

.user-info img {
    width: 32px;
    height: 32px;
    margin-right: 10px;
}

.start-menu-items {
    padding: 5px;
}

.start-menu-item {
    padding: 5px 10px;
    font-size: 11px;
    cursor: pointer;
}

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

.start-menu-footer {
    border-top: 1px solid #999;
    padding-top: 5px;
    margin-top: 5px;
}

.built-with {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 3px;
    z-index: 1002;
}

.built-with a {
    color: white;
    text-decoration: none;
    font-size: 11px;
}

.built-with a:hover {
    text-decoration: underline;
}

.loading {
    font-style: italic;
    color: #666;
}

.error {
    color: #d32f2f;
    font-style: italic;
}

@media (max-width: 768px) {
    .window {
        width: 90%;
        height: 70%;
        left: 5%;
        top: 10%;
    }
    
    .desktop-icons {
        flex-direction: row;
        flex-wrap: wrap;
        width: calc(100% - 40px);
    }
}