/* Reset and Basics */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #008080; /* Windows 98 Teal */
    font-family: 'MS Sans Serif', Arial, sans-serif;
    font-size: 12px;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Desktop Surface */
#desktop {
    flex: 1;
    position: relative;
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 20px;
}

/* Desktop Icons */
.desktop-icons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 75px;
    cursor: pointer;
    text-align: center;
}

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

.icon-label {
    color: white;
    padding: 2px 4px;
    word-break: break-word;
}

.desktop-icon:focus .icon-label,
.desktop-icon:active .icon-label {
    background-color: #000080;
    border: 1px dotted #fff;
}

/* Taskbar */
#taskbar {
    background-color: #C0C0C0;
    height: 28px;
    display: flex;
    align-items: center;
    padding: 2px;
    border-top: 1px solid #ffffff;
    box-shadow: inset 0 1px 0 #dfdfdf;
    z-index: 10000;
}

#start-button {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 5px;
    font-weight: bold;
    cursor: pointer;
}

#taskbar-apps {
    flex: 1;
    display: flex;
    gap: 2px;
    padding: 0 5px;
    overflow: hidden;
}

.taskbar-app-btn {
    height: 100%;
    min-width: 80px;
    max-width: 150px;
    display: flex;
    align-items: center;
    padding: 0 5px;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.taskbar-app-btn.active {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="2" height="2"><rect width="1" height="1" fill="%23fff"/><rect x="1" y="1" width="1" height="1" fill="%23fff"/></svg>') repeat;
    background-color: #e0e0e0;
}

#system-tray {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px;
    margin-left: auto;
}

/* Theme Toggle Button */
.theme-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 9999;
    padding: 5px 10px;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    background-color: #C0C0C0;
    border: 1px solid;
    border-top-color: #FFFFFF;
    border-left-color: #FFFFFF;
    border-right-color: #000000;
    border-bottom-color: #000000;
    box-shadow: inset 1px 1px 0px 0px #DFDFDF, inset -1px -1px 0px 0px #808080;
}
.theme-btn:active {
    border-top-color: #000000;
    border-left-color: #000000;
    border-right-color: #FFFFFF;
    border-bottom-color: #FFFFFF;
    box-shadow: inset 1px 1px 0px 0px #808080, inset -1px -1px 0px 0px #DFDFDF;
    padding-top: 6px;
    padding-left: 11px;
}
