/* Windows 98 Theme - Main Styles */

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

body {
    font-family: 'MS Sans Serif', Arial, sans-serif;
    font-size: 11px;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    background: #008080; /* Teal desktop background */
    user-select: none;
    cursor: default;
}

/* Desktop */
.desktop {
    width: 100%;
    height: calc(100vh - 28px); /* Full height minus taskbar */
    background: url('../assets/wallpapers/bliss.jpg') center/cover no-repeat;
    background-color: #008080;
    position: relative;
    overflow: hidden;
}

/* Taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: #c0c0c0;
    border-top: 1px solid #ffffff;
    display: flex;
    align-items: center;
    padding: 2px;
    z-index: 10000;
}

.start-button {
    height: 24px;
    padding: 0 4px 0 2px;
    background: #c0c0c0;
    border: none;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #000000;
    border-bottom: 1px solid #000000;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.start-button:active {
    border-top: 1px solid #000000;
    border-left: 1px solid #000000;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    padding: 1px 3px 0 3px;
}

.start-button img {
    width: 16px;
    height: 16px;
}

.taskbar-separator {
    width: 2px;
    height: 22px;
    background: linear-gradient(to right, #808080, #ffffff);
    margin: 0 2px;
}

.taskbar-buttons {
    flex: 1;
    display: flex;
    gap: 2px;
    overflow-x: auto;
    overflow-y: hidden;
    height: 24px;
}

.taskbar-buttons::-webkit-scrollbar {
    display: none;
}

.taskbar-button {
    min-width: 120px;
    max-width: 160px;
    height: 22px;
    padding: 0 4px;
    background: #c0c0c0;
    border-top: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    border-right: 1px solid #000000;
    border-bottom: 1px solid #000000;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.taskbar-button.active {
    border-top: 1px solid #000000;
    border-left: 1px solid #000000;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    background: #c0c0c0;
    padding-top: 1px;
    padding-left: 5px;
}

.taskbar-button img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.taskbar-button span {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* System Tray */
.system-tray {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px;
    height: 22px;
    border-top: 1px solid #808080;
    border-left: 1px solid #808080;
    border-right: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    margin-left: auto;
}

.tray-icon {
    font-size: 14px;
    cursor: pointer;
}

.clock {
    font-family: 'MS Sans Serif', Arial, sans-serif;
    font-size: 11px;
    padding: 0 2px;
}

/* Windows Container */
#windows-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 28px;
    pointer-events: none;
}

#windows-container > * {
    pointer-events: auto;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Loading Screen (optional) */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000080;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    font-family: 'MS Sans Serif', Arial, sans-serif;
}

.loading h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.loading p {
    font-size: 16px;
}
