﻿/* ============================================
   Windows 98 Desktop Theme
   ============================================ */

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

:root {
    --desktop-bg: #008080;
    --win-face: #c0c0c0;
    --win-text: #000;
    --win-white: #fff;
    --win-light: #dfdfdf;
    --win-dark: #808080;
    --win-black: #000;
    --title-active-start: #000080;
    --title-active-end: #1084d0;
    --title-inactive-start: #808080;
    --title-inactive-end: #b5b5b5;
    --highlight: #000080;
    --highlight-text: #fff;
    --taskbar-h: 30px;
    --font-sys: 'Tahoma', 'Segoe UI', 'Microsoft Sans Serif', Arial, sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-sys);
    font-size: 11px;
    color: var(--win-text);
    background: var(--win-face);
    cursor: default;
    -webkit-user-select: none;
    user-select: none;
}

/* ========== BOOT SCREEN ========== */
#boot-screen {
    position: fixed;
    inset: 0;
    /* Solid teal background for the "desktop loading" feel */
    background: #008080;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
    cursor: wait;
}

#boot-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

#boot-screen.hidden {
    display: none;
}

/* The Boot Dialog Box */
.boot-dialog {
    width: 350px;
    background: #c0c0c0;
    border: 2px solid #dfdfdf;
    border-right-color: #000;
    border-bottom-color: #000;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    padding: 2px;
}

.boot-dialog-title-bar {
    background: linear-gradient(90deg, #000080, #1084d0);
    color: white;
    padding: 2px 4px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Microsoft Sans Serif', 'Tahoma', sans-serif;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.boot-dialog-close {
    width: 14px;
    height: 14px;
    background: #c0c0c0;
    border: 1px solid #fff;
    border-right-color: #000;
    border-bottom-color: #000;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-family: sans-serif;
    cursor: pointer;
    box-shadow: 1px 1px 0 #000;
}

.boot-dialog-body {
    padding: 15px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: 'Microsoft Sans Serif', 'Tahoma', sans-serif;
    font-size: 11px;
    color: #000;
}

.boot-status-text {
    margin-bottom: 5px;
}

/* Progress Bar Container */
.boot-progress-track {
    height: 16px;
    background: #fff;
    border: 1px solid #808080;
    border-right-color: #fff;
    border-bottom-color: #fff;
    box-shadow: inset 1px 1px 0 #000;
    padding: 0;
    position: relative;
    width: 100%;
}

/* The Progress Bar Chunks */
.boot-progress-bar {
    height: 100%;
    width: 0%;
    background: #000080; /* Fallback */
    /* Win98 blue blocks were distinct, separating by 2px space */
    background: repeating-linear-gradient(
        90deg,
        #000080 0px,
        #000080 10px,
        #fff 10px,
        #fff 12px
    );
    /* No smooth transition for that choppy load feel */
    transition: none; 
}

/* Cancel Button */
.boot-dialog-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
}

.boot-btn {
    min-width: 75px;
    padding: 4px 10px;
    background: #c0c0c0;
    border: 2px solid #fff;
    border-right-color: #000;
    border-bottom-color: #000;
    color: #000;
    font-family: 'Microsoft Sans Serif', 'Tahoma', sans-serif;
    font-size: 11px;
    text-align: center;
    cursor: pointer;
    box-shadow: 1px 1px 0 #000;
}

.boot-btn:active {
    border: 2px solid #000;
    border-right-color: #fff;
    border-bottom-color: #fff;
    box-shadow: none;
    transform: translate(1px, 1px);
}


/* ========== SHUTDOWN SCREEN ========== */
#shutdown-screen {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 100001;
    display: none;
    overflow: hidden;
    cursor: default;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#shutdown-screen.visible {
    display: flex;
    animation: sdReveal .4s ease both;
}
.sd-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: relative;
}
.sd-text {
    color: #fff;
    font-size: 16px;
    font-family: 'Courier New', 'Consolas', 'Lucida Console', monospace;
    line-height: 1.6;
    white-space: pre-wrap;
    z-index: 2;
    user-select: none;
    text-align: center;
    max-width: 70vw;
    min-height: 1.6em;
}
.sd-cursor {
    display: inline;
    color: #aaa;
    font-size: 16px;
    font-family: 'Courier New', 'Consolas', 'Lucida Console', monospace;
    animation: sdBlink .53s step-end infinite;
    z-index: 2;
    vertical-align: baseline;
}
.sd-boot-btn {
    margin-top: calc(50vh - 200px);
    background: var(--win-face);
    color: #000;
    font-family: var(--font-sys);
    font-size: 11px;
    padding: 4px 20px;
    border: 2px solid;
    border-color: var(--win-white) var(--win-dark) var(--win-dark) var(--win-white);
    cursor: pointer;
    z-index: 3;
    opacity: 0;
    transition: opacity .3s;
}
#shutdown-screen.visible .sd-boot-btn {
    opacity: 1;
    transition-delay: 2s;
}
.sd-boot-btn:active {
    border-color: var(--win-dark) var(--win-white) var(--win-white) var(--win-dark);
}
@keyframes sdReveal {
    0%   { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes sdBlink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}

/* ========== DESKTOP ========== */
#desktop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: var(--taskbar-h);
    background: var(--desktop-bg);
    overflow: hidden;
}

/* ========== DESKTOP ICONS ========== */
#desktop-icons {
    position: absolute;
    top: 10px;
    left: 10px;
    bottom: 10px;
    right: 10px;
    display: grid;
    grid-template-rows: repeat(auto-fill, 80px);
    grid-auto-flow: column;
    grid-auto-columns: 80px;
    gap: 4px;
    align-content: start;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 6px 4px;
    gap: 4px;
    cursor: default;
    border: 1px solid transparent;
    text-align: center;
    text-decoration: none;
    color: inherit;
}
.desktop-icon.selected .icon-img-wrap {
    filter: brightness(0.6) sepia(1) hue-rotate(200deg) saturate(3);
}
.desktop-icon.selected .icon-label {
    background: var(--highlight);
    color: var(--highlight-text);
}

.icon-img-wrap {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-img-wrap svg {
    width: 32px;
    height: 32px;
}
.icon-img-wrap img, .explorer-icon img, .sd-icon img, .recycle-empty img, .error-icon img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
}
.title-bar-icon svg {
    width: 16px;
    height: 16px;
}
.title-bar-icon img, .start-item .item-icon img, .quick-launch-btn img, .taskbar-program-icon img, .tray-icon img, .start-flag img {
    width: 16px;
    height: 16px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
}

.icon-label {
    font-size: 11px;
    color: #fff;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.8);
    padding: 1px 2px;
    max-width: 72px;
    word-wrap: break-word;
    line-height: 1.2;
}

/* ========== WINDOWS ========== */
.window {
    position: absolute;
    background: var(--win-face);
    border-top: 2px solid var(--win-light);
    border-left: 2px solid var(--win-light);
    border-right: 2px solid var(--win-black);
    border-bottom: 2px solid var(--win-black);
    box-shadow: inset 1px 1px 0 var(--win-white), inset -1px -1px 0 var(--win-dark);
    display: flex;
    flex-direction: column;
    min-width: 200px;
    min-height: 80px;
}
.window.hidden {
    display: none;
}
.window.minimized {
    display: none !important;
}
.window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100vh - var(--taskbar-h)) !important;
}

/* ========== TITLE BAR ========== */
.title-bar {
    background: linear-gradient(to right, var(--title-active-start), var(--title-active-end));
    padding: 2px 3px;
    display: flex;
    align-items: center;
    gap: 3px;
    min-height: 20px;
    flex-shrink: 0;
    cursor: default;
}
.window.inactive .title-bar {
    background: linear-gradient(to right, var(--title-inactive-start), var(--title-inactive-end));
}

.title-bar-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.title-bar-icon svg {
    width: 16px;
    height: 16px;
}

.title-bar-text {
    flex: 1;
    color: var(--win-white);
    font-weight: bold;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 2px;
}

.title-bar-controls {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}
.title-bar-controls button {
    width: 16px;
    height: 14px;
    background: var(--win-face);
    border-top: 1px solid var(--win-white);
    border-left: 1px solid var(--win-white);
    border-bottom: 1px solid var(--win-black);
    border-right: 1px solid var(--win-black);
    box-shadow: inset -1px -1px 0 var(--win-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    color: var(--win-black);
    cursor: default;
    padding: 0;
    line-height: 1;
    font-family: var(--font-sys);
}
.title-bar-controls button:active {
    border-top: 1px solid var(--win-black);
    border-left: 1px solid var(--win-black);
    border-bottom: 1px solid var(--win-white);
    border-right: 1px solid var(--win-white);
    box-shadow: none;
    padding-top: 1px;
    padding-left: 1px;
}

/* ========== MENU BAR ========== */
.menu-bar {
    display: flex;
    padding: 1px 0;
    border-bottom: 1px solid var(--win-dark);
    flex-shrink: 0;
    background: var(--win-face);
}
.menu-bar-item {
    padding: 2px 6px;
    cursor: default;
    font-size: 11px;
}
.menu-bar-item:hover {
    background: var(--highlight);
    color: var(--highlight-text);
}

/* ========== WINDOW BODY ========== */
.window-body {
    flex: 1;
    overflow: auto;
    margin: 3px;
    background: var(--win-white);
    border-top: 1px solid var(--win-dark);
    border-left: 1px solid var(--win-dark);
    border-bottom: 1px solid var(--win-white);
    border-right: 1px solid var(--win-white);
    box-shadow: inset 1px 1px 0 var(--win-black);
}
.window-body.no-sunken {
    background: var(--win-face);
    border: none;
    box-shadow: none;
}

/* ========== STATUS BAR ========== */
.status-bar {
    display: flex;
    gap: 1px;
    padding: 2px 3px;
    flex-shrink: 0;
}
.status-bar-field {
    border-top: 1px solid var(--win-dark);
    border-left: 1px solid var(--win-dark);
    border-bottom: 1px solid var(--win-white);
    border-right: 1px solid var(--win-white);
    padding: 1px 4px;
    font-size: 11px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
}

/* ========== BUTTONS ========== */
.win-btn {
    background: var(--win-face);
    border-top: 2px solid var(--win-white);
    border-left: 2px solid var(--win-white);
    border-bottom: 2px solid var(--win-black);
    border-right: 2px solid var(--win-black);
    box-shadow: inset -1px -1px 0 var(--win-dark), inset 1px 1px 0 var(--win-light);
    padding: 4px 16px;
    font-family: var(--font-sys);
    font-size: 11px;
    cursor: default;
    min-width: 75px;
}
.win-btn:active {
    border-top: 2px solid var(--win-black);
    border-left: 2px solid var(--win-black);
    border-bottom: 2px solid var(--win-white);
    border-right: 2px solid var(--win-white);
    box-shadow: inset 1px 1px 0 var(--win-dark);
    padding: 5px 15px 3px 17px;
}
.win-btn:focus {
    outline: 1px dotted var(--win-black);
    outline-offset: -4px;
}
.win-btn.default {
    border: 3px solid var(--win-black);
}

/* ========== INPUTS ========== */
.win-input {
    background: var(--win-white);
    border-top: 1px solid var(--win-dark);
    border-left: 1px solid var(--win-dark);
    border-bottom: 1px solid var(--win-white);
    border-right: 1px solid var(--win-white);
    box-shadow: inset 1px 1px 0 var(--win-black);
    padding: 2px 4px;
    font-family: var(--font-sys);
    font-size: 11px;
    outline: none;
}

.win-textarea {
    background: var(--win-white);
    border: none;
    padding: 4px;
    font-family: 'Lucida Console', 'Courier New', monospace;
    font-size: 13px;
    outline: none;
    resize: none;
    width: 100%;
    height: 100%;
    -webkit-user-select: text;
    user-select: text;
}

/* ========== TASKBAR ========== */
#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--taskbar-h);
    background: var(--win-face);
    border-top: 2px solid var(--win-white);
    display: flex;
    align-items: center;
    padding: 2px 3px;
    gap: 3px;
    z-index: 9999;
}

#start-btn {
    background: var(--win-face);
    border-top: 2px solid var(--win-white);
    border-left: 2px solid var(--win-white);
    border-bottom: 2px solid var(--win-black);
    border-right: 2px solid var(--win-black);
    box-shadow: inset -1px -1px 0 var(--win-dark);
    padding: 2px 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-sys);
    font-size: 11px;
    font-weight: bold;
    cursor: default;
    height: 22px;
    flex-shrink: 0;
}
#start-btn:active, #start-btn.active {
    border-top: 2px solid var(--win-black);
    border-left: 2px solid var(--win-black);
    border-bottom: 2px solid var(--win-white);
    border-right: 2px solid var(--win-white);
    box-shadow: inset 1px 1px 0 var(--win-dark);
    padding: 3px 5px 1px 7px;
}

.start-flag {
    width: 16px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.start-flag svg { width: 16px; height: 14px; }

.taskbar-divider {
    width: 2px;
    height: 80%;
    border-left: 1px solid var(--win-dark);
    border-right: 1px solid var(--win-white);
    margin: 0 1px;
    flex-shrink: 0;
}

#quick-launch {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
    padding-right: 2px;
}
.quick-launch-btn {
    width: 22px;
    height: 22px;
    background: transparent;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    padding: 0;
}
.quick-launch-btn:hover {
    border-top: 1px solid var(--win-white);
    border-left: 1px solid var(--win-white);
    border-bottom: 1px solid var(--win-dark);
    border-right: 1px solid var(--win-dark);
}
.quick-launch-btn:active {
    border-top: 1px solid var(--win-dark);
    border-left: 1px solid var(--win-dark);
    border-bottom: 1px solid var(--win-white);
    border-right: 1px solid var(--win-white);
}
.quick-launch-btn svg { width: 16px; height: 16px; }

#taskbar-programs {
    display: flex;
    flex: 1;
    gap: 2px;
    overflow: hidden;
}

.taskbar-program {
    background: var(--win-face);
    border-top: 2px solid var(--win-white);
    border-left: 2px solid var(--win-white);
    border-bottom: 2px solid var(--win-black);
    border-right: 2px solid var(--win-black);
    box-shadow: inset -1px -1px 0 var(--win-dark);
    padding: 1px 8px;
    font-size: 11px;
    cursor: default;
    height: 22px;
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: 160px;
    min-width: 60px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
}
.taskbar-program.active {
    border-top: 2px solid var(--win-black);
    border-left: 2px solid var(--win-black);
    border-bottom: 2px solid var(--win-white);
    border-right: 2px solid var(--win-white);
    box-shadow: inset 1px 1px 0 var(--win-dark);
    background: repeating-linear-gradient(
        90deg,
        var(--win-face) 0px,
        var(--win-face) 1px,
        var(--win-white) 1px,
        var(--win-white) 2px
    );
    font-weight: bold;
}
.taskbar-program-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.taskbar-program-icon svg { width: 16px; height: 16px; }

#system-tray {
    border-top: 1px solid var(--win-dark);
    border-left: 1px solid var(--win-dark);
    border-bottom: 1px solid var(--win-white);
    border-right: 1px solid var(--win-white);
    padding: 2px 8px;
    height: 22px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.tray-icon { width: 16px; height: 16px; }
.tray-icon svg { width: 16px; height: 16px; }
#clock { font-size: 11px; white-space: nowrap; }

/* ========== START MENU ========== */
#start-menu {
    position: fixed;
    bottom: var(--taskbar-h);
    left: 0;
    background: var(--win-face);
    border-top: 2px solid var(--win-white);
    border-left: 2px solid var(--win-white);
    border-right: 2px solid var(--win-black);
    box-shadow: inset 1px 1px 0 var(--win-light), inset -1px 0 0 var(--win-dark);
    z-index: 10000;
    display: none;
    min-width: 180px;
}
#start-menu.open { display: flex; }

.start-sidebar {
    width: 24px;
    background: linear-gradient(to top, #000080, #1084d0);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
    flex-shrink: 0;
}
.start-sidebar-text {
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    font-weight: bold;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    letter-spacing: 2px;
    font-family: var(--font-sys);
}

.start-items {
    flex: 1;
    padding: 3px 0;
}

.start-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 24px 5px 8px;
    font-size: 11px;
    cursor: default;
    position: relative;
    text-decoration: none;
    color: var(--win-text);
    white-space: nowrap;
}
.start-item:hover {
    background: var(--highlight);
    color: var(--highlight-text);
}
.start-item .item-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.start-item .item-icon svg { width: 16px; height: 16px; }
.start-item .submenu-arrow {
    position: absolute;
    right: 8px;
    font-size: 8px;
    font-family: 'Courier New', monospace;
}
.start-separator {
    height: 2px;
    margin: 3px 4px;
    border-top: 1px solid var(--win-dark);
    border-bottom: 1px solid var(--win-white);
}

/* Submenu */
.start-submenu {
    position: absolute;
    left: 100%;
    top: -3px;
    background: var(--win-face);
    border-top: 2px solid var(--win-white);
    border-left: 2px solid var(--win-white);
    border-right: 2px solid var(--win-black);
    border-bottom: 2px solid var(--win-black);
    box-shadow: inset 1px 1px 0 var(--win-light), inset -1px -1px 0 var(--win-dark);
    min-width: 180px;
    padding: 3px 0;
    display: none;
    z-index: 10001;
}
.start-item:hover > .start-submenu { display: block; }

/* ========== CONTEXT MENU ========== */
#context-menu {
    position: fixed;
    background: var(--win-face);
    border-top: 2px solid var(--win-white);
    border-left: 2px solid var(--win-white);
    border-right: 2px solid var(--win-black);
    border-bottom: 2px solid var(--win-black);
    box-shadow: inset 1px 1px 0 var(--win-light), inset -1px -1px 0 var(--win-dark);
    padding: 3px 0;
    z-index: 10002;
    display: none;
    min-width: 160px;
}
#context-menu.open { display: block; }
.ctx-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 20px 4px 28px;
    font-size: 11px;
    cursor: default;
}
.ctx-item:hover {
    background: var(--highlight);
    color: var(--highlight-text);
}
.ctx-item.disabled {
    color: var(--win-dark);
    pointer-events: none;
}
.ctx-separator {
    height: 2px;
    margin: 2px 3px;
    border-top: 1px solid var(--win-dark);
    border-bottom: 1px solid var(--win-white);
}

/* ========== PICTURE WINDOW ========== */
.picture-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.picture-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: var(--win-face);
    flex: 1;
    min-height: 0;
    overflow: hidden;
}
.picture-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.picture-caption {
    text-align: center;
    font-size: 11px;
    font-family: var(--font-sys);
    color: #000;
    padding: 4px 8px 6px;
    background: var(--win-face);
    border-top: 1px solid var(--win-dark);
    font-style: italic;
    flex-shrink: 0;
}

/* ========== MINESWEEPER ========== */
.mine-panel {
    border: 3px solid;
    border-color: var(--win-dark) var(--win-white) var(--win-white) var(--win-dark);
    background: var(--win-face);
    padding: 5px;
}
.mine-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 2px solid;
    border-color: var(--win-dark) var(--win-white) var(--win-white) var(--win-dark);
    padding: 4px 6px;
    margin-bottom: 5px;
    background: var(--win-face);
}
.mine-counter {
    background: #000;
    color: #f00;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 22px;
    font-weight: bold;
    padding: 2px 4px;
    min-width: 42px;
    text-align: center;
    border: 1px solid;
    border-color: var(--win-dark) var(--win-white) var(--win-white) var(--win-dark);
    letter-spacing: 2px;
    line-height: 1;
}
.mine-face {
    width: 28px;
    height: 28px;
    font-size: 16px;
    cursor: pointer;
    border: 2px solid;
    border-color: var(--win-white) var(--win-dark) var(--win-dark) var(--win-white);
    background: var(--win-face);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}
.mine-face:active {
    border-color: var(--win-dark) var(--win-white) var(--win-white) var(--win-dark);
}
.mine-grid {
    display: grid;
    grid-template-columns: repeat(9, 18px);
    grid-template-rows: repeat(9, 18px);
    border: 3px solid;
    border-color: var(--win-dark) var(--win-white) var(--win-white) var(--win-dark);
}
.mine-cell {
    width: 18px;
    height: 18px;
    border: 2px solid;
    border-color: var(--win-white) var(--win-dark) var(--win-dark) var(--win-white);
    background: var(--win-face);
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    line-height: 1;
    font-family: 'Arial', sans-serif;
}
.mine-cell.revealed {
    border: 1px solid var(--win-dark);
    cursor: default;
}
.mine-cell.mine-boom {
    background: #f00;
}
.mine-cell.flagged::after {
    content: '\1F6A9';
    font-size: 12px;
}
.mine-cell .n1 { color: #0000ff; }
.mine-cell .n2 { color: #008000; }
.mine-cell .n3 { color: #ff0000; }
.mine-cell .n4 { color: #000080; }
.mine-cell .n5 { color: #800000; }
.mine-cell .n6 { color: #008080; }
.mine-cell .n7 { color: #000; }
.mine-cell .n8 { color: #808080; }

/* ========== CONTACT WINDOW ========== */
.contact-content-simple {
    padding: 20px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon-large {
    flex-shrink: 0;
}
.contact-icon-large img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: 'Microsoft Sans Serif', 'Tahoma', sans-serif;
    font-size: 11px;
    color: #000;
}

.contact-system-text {
    line-height: 1.2;
}

.contact-info-block a {
    color: #0000ff;
    text-decoration: underline;
    cursor: pointer;
}

/* Button Row for Dialogs */
.win98-btn-row {
    margin-top: auto;
    padding: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.win98-btn {
    min-width: 75px;
    padding: 4px 10px;
    background: #c0c0c0;
    border: 1px solid #000;
    border-top-color: #fff;
    border-left-color: #fff;
    color: #000;
    font-family: 'Microsoft Sans Serif', 'Tahoma', sans-serif;
    font-size: 11px;
    cursor: pointer;
    box-shadow: 1px 1px 0 #000;
}

.win98-btn:active {
    border: 1px solid #fff;
    border-top-color: #000;
    border-left-color: #000;
    box-shadow: none;
    transform: translate(1px, 1px);
}
    width: 48px;
    height: 48px;
    background: var(--highlight);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
}
.contact-name {
    font-size: 16px;
    font-weight: bold;
}
.contact-role {
    font-size: 11px;
    color: var(--win-dark);
}

/* ========== IE WINDOW ========== */
.ie-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 4px;
    background: var(--win-face);
    border-bottom: 1px solid var(--win-dark);
    flex-shrink: 0;
}
.ie-label {
    font-size: 11px;
    padding: 0 4px;
    white-space: nowrap;
}
.ie-address {
    flex: 1;
}
.ie-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
}
#ie-frame {
    flex: 1;
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
}

/* ========== MY COMPUTER WINDOW ========== */
.explorer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    align-content: flex-start;
}
.explorer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px;
    width: 80px;
    text-align: center;
    cursor: default;
    border: 1px solid transparent;
    text-decoration: none;
    color: var(--win-text);
}
.explorer-item:hover {
    border: 1px dotted var(--win-dark);
}
.explorer-item.selected {
    background: var(--highlight);
    color: var(--highlight-text);
}
.explorer-item .explorer-icon {
    width: 32px;
    height: 32px;
}
.explorer-item .explorer-icon svg { width: 32px; height: 32px; }
.explorer-item .explorer-label {
    font-size: 11px;
    line-height: 1.2;
    word-break: break-word;
}

/* ========== ABOUT DIALOG ========== */
.about-body {
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--win-face);
}
.about-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.about-flag {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}
.about-flag div { width: 20px; height: 20px; }
.about-right {
    flex: 1;
    font-size: 11px;
    line-height: 1.8;
}
.about-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
}
.about-btn-row {
    display: flex;
    justify-content: flex-end;
    padding: 8px 12px;
    background: var(--win-face);
    border-top: 1px solid var(--win-dark);
}

/* ========== SHUTDOWN DIALOG ========== */
.sd-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: var(--win-face);
    text-align: center;
}
.sd-icon {
    width: 32px;
    height: 32px;
}
.sd-btns {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

/* ========== RECYCLE BIN WINDOW ========== */
.recycle-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 100%;
    padding: 40px;
    color: var(--win-dark);
    font-size: 11px;
}
.recycle-empty svg {
    width: 48px;
    height: 48px;
    opacity: 0.4;
}

/* ========== SCROLLBARS ========== */
.window-body::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}
.window-body::-webkit-scrollbar-track {
    background: repeating-conic-gradient(var(--win-face) 0% 25%, var(--win-white) 0% 50%) 50% / 2px 2px;
}
.window-body::-webkit-scrollbar-thumb {
    background: var(--win-face);
    border-top: 2px solid var(--win-white);
    border-left: 2px solid var(--win-white);
    border-bottom: 2px solid var(--win-black);
    border-right: 2px solid var(--win-black);
    box-shadow: inset -1px -1px 0 var(--win-dark);
}
.window-body::-webkit-scrollbar-button {
    width: 16px;
    height: 16px;
    background: var(--win-face);
    border-top: 2px solid var(--win-white);
    border-left: 2px solid var(--win-white);
    border-bottom: 2px solid var(--win-black);
    border-right: 2px solid var(--win-black);
}

/* ========== SELECTION BOX ========== */
#selection-box {
    position: absolute;
    border: 1px dotted #fff;
    background: rgba(0, 0, 128, 0.15);
    pointer-events: none;
    display: none;
    z-index: 50;
}

/* ========== ERROR DIALOG ========== */
.error-body {
    padding: 16px 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--win-face);
}
.error-icon {
    font-size: 32px;
    flex-shrink: 0;
    line-height: 1;
}
.error-text {
    font-size: 11px;
    line-height: 1.6;
    flex: 1;
    padding-top: 6px;
}
.error-btn-row {
    display: flex;
    justify-content: center;
    padding: 8px 12px;
    background: var(--win-face);
    border-top: 1px solid var(--win-dark);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    #desktop-icons {
        grid-template-rows: repeat(auto-fill, 70px);
        grid-auto-columns: 70px;
    }
    .icon-label { font-size: 10px; }
    .ie-search-input { width: 180px; }
    .ie-google-logo { font-size: 36px; }
}

/* ========== RECYCLE BIN SHENANIGANS ========== */
@keyframes shake-bin {
    0%, 100% { transform: translate(0, 0); }
    10%, 90% { transform: translate(-3px, 2px); }
    20%, 80% { transform: translate(4px, -3px); }
    30%, 70% { transform: translate(-5px, 0px); }
    40%, 60% { transform: translate(3px, 4px); }
    50% { transform: translate(-2px, -2px); }
}

.spit-out-transition {
    transition: left 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), top 0.4s cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}

/* ========== CAMERA WINDOW ========== */
#cam-canvas {
    background: #000;
}
.cam-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #c0c0c0;
    font-family: var(--font-sys);
    font-size: 12px;
    text-align: center;
    pointer-events: none;
    z-index: 2;
}
.cam-btn {
    font-size: 11px;
    padding: 2px 12px;
    min-width: 50px;
}
/* Scanline overlay on the canvas */
#window-camera .window-body::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 4px
    );
    pointer-events: none;
    z-index: 1;
}
/* CRT vignette effect */
#window-camera .window-body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
    z-index: 1;
}
