/* ===== WIN98 SCROLLBAR ===== */
.window-content::-webkit-scrollbar,
.explorer-content::-webkit-scrollbar,
.readme-content-window::-webkit-scrollbar,
.static-content-window::-webkit-scrollbar,
.display-properties-content::-webkit-scrollbar,
.win98-modal-content::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

.window-content::-webkit-scrollbar-track,
.explorer-content::-webkit-scrollbar-track,
.readme-content-window::-webkit-scrollbar-track,
.static-content-window::-webkit-scrollbar-track,
.display-properties-content::-webkit-scrollbar-track,
.win98-modal-content::-webkit-scrollbar-track {
    background: #C0C0C0;
    border: 2px inset;
    border-color: #808080 #FFFFFF #FFFFFF #808080;
}

.window-content::-webkit-scrollbar-thumb,
.explorer-content::-webkit-scrollbar-thumb,
.readme-content-window::-webkit-scrollbar-thumb,
.static-content-window::-webkit-scrollbar-thumb,
.display-properties-content::-webkit-scrollbar-thumb,
.win98-modal-content::-webkit-scrollbar-thumb {
    background: #C0C0C0;
    border: 2px solid;
    border-color: #FFFFFF #808080 #808080 #FFFFFF;
    min-height: 20px;
}

.window-content::-webkit-scrollbar-thumb:active,
.explorer-content::-webkit-scrollbar-thumb:active,
.readme-content-window::-webkit-scrollbar-thumb:active,
.static-content-window::-webkit-scrollbar-thumb:active,
.display-properties-content::-webkit-scrollbar-thumb:active,
.win98-modal-content::-webkit-scrollbar-thumb:active {
    border-color: #808080 #FFFFFF #FFFFFF #808080;
}

.window-content::-webkit-scrollbar-button,
.explorer-content::-webkit-scrollbar-button,
.readme-content-window::-webkit-scrollbar-button,
.static-content-window::-webkit-scrollbar-button,
.display-properties-content::-webkit-scrollbar-button,
.win98-modal-content::-webkit-scrollbar-button {
    background: #C0C0C0;
    border: 2px solid;
    border-color: #FFFFFF #808080 #808080 #FFFFFF;
    width: 16px;
    height: 16px;
    display: block;
}

.window-content::-webkit-scrollbar-button:active,
.explorer-content::-webkit-scrollbar-button:active,
.readme-content-window::-webkit-scrollbar-button:active,
.static-content-window::-webkit-scrollbar-button:active,
.display-properties-content::-webkit-scrollbar-button:active,
.win98-modal-content::-webkit-scrollbar-button:active {
    border-color: #808080 #FFFFFF #FFFFFF #808080;
}

/* Arrow buttons */
.window-content::-webkit-scrollbar-button:vertical:decrement { background: #C0C0C0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpolygon points='4,0 8,6 0,6' fill='%23000'/%3E%3C/svg%3E") center no-repeat; }
.window-content::-webkit-scrollbar-button:vertical:increment { background: #C0C0C0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpolygon points='0,0 8,0 4,6' fill='%23000'/%3E%3C/svg%3E") center no-repeat; }
.window-content::-webkit-scrollbar-button:horizontal:decrement { background: #C0C0C0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpolygon points='0,4 6,0 6,8' fill='%23000'/%3E%3C/svg%3E") center no-repeat; }
.window-content::-webkit-scrollbar-button:horizontal:increment { background: #C0C0C0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpolygon points='0,0 8,4 0,8' fill='%23000'/%3E%3C/svg%3E") center no-repeat; }

/* ===== WINDOWS ===== */
.window {
    position: absolute;
    background: #C0C0C0;
    border: 3px solid;
    border-color: #FFFFFF #404040 #404040 #FFFFFF;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.5);
    min-width: 200px;
    min-height: 150px;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

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

.window:not(.active) .window-titlebar {
    background: #808080;
    color: #A0A0A0;
}

.window-titlebar {
    background: linear-gradient(90deg, #000080, #1084D0);
    color: #FFFFFF;
    padding: 3px 5px;
    font-weight: bold;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 20px;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.window-titlebar:active { cursor: grabbing; }

.window-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-left: 2px;
}

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

.window-control-button {
    background: #C0C0C0;
    border: 2px solid;
    border-color: #FFFFFF #808080 #808080 #FFFFFF;
    width: 18px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1px;
    cursor: default;
    color: #000;
    flex-shrink: 0;
    box-sizing: border-box;
}

.window-control-button svg {
    width: 10px;
    height: 10px;
    stroke: currentColor;
    stroke-linecap: square;
    stroke-linejoin: miter;
}

.window-control-button:active {
    border-color: #808080 #FFFFFF #FFFFFF #808080;
    padding: 2px 0 0 2px;
}

.window-content {
    padding: 8px;
    flex-grow: 1;
    background: #FFFFFF;
    color: #000000;
    overflow: auto;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    border: 2px inset;
    border-color: #808080 #FFFFFF #FFFFFF #808080;
    margin: 2px;
}

/* ===== WIN98 MODAL ===== */
.win98-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0s 0.15s;
}

.win98-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.15s ease;
}

.win98-modal {
    background: #C0C0C0;
    border: 2px solid;
    border-color: #FFFFFF #404040 #404040 #FFFFFF;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.4);
    padding: 0;
    min-width: 300px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
}

.win98-modal-titlebar {
    background: linear-gradient(90deg, #000080, #1084D0);
    color: #FFFFFF;
    padding: 3px 8px;
    font-weight: bold;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 20px;
    letter-spacing: 0.3px;
}

.win98-modal-titlebar .win98-modal-close {
    background: #C0C0C0;
    border: 2px solid;
    border-color: #FFFFFF #808080 #808080 #FFFFFF;
    width: 18px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    box-sizing: border-box;
}

.win98-modal-titlebar .win98-modal-close:active {
    border-color: #808080 #FFFFFF #FFFFFF #808080;
}

.win98-modal-titlebar .win98-modal-close svg {
    width: 10px;
    height: 10px;
    stroke: #000;
}

.win98-modal-content {
    padding: 15px 20px;
    font-size: 12px;
    color: #000;
    display: flex;
    align-items: flex-start;
    max-height: 80vh;
    overflow-y: auto;
    font-family: "Tahoma", "Geneva", sans-serif;
}

.win98-modal-content img {
    width: 32px;
    height: 32px;
    margin-right: 15px;
    flex-shrink: 0;
}

.win98-modal-content p {
    margin: 0;
    white-space: pre-wrap;
}

.win98-modal-buttons {
    padding: 10px;
    text-align: center;
    border-top: 1px solid #808080;
    margin-top: 10px;
    background: #C0C0C0;
}

.win98-modal-buttons button {
    background: #C0C0C0;
    border: 2px solid;
    border-color: #FFFFFF #808080 #808080 #FFFFFF;
    padding: 4px 12px;
    min-width: 70px;
    margin: 0 5px;
    cursor: default;
    font-size: 12px;
    color: #000;
    font-family: "Tahoma", "Geneva", sans-serif;
}

.win98-modal-buttons button:active {
    border-color: #808080 #FFFFFF #FFFFFF #808080;
}
