@font-face {
    font-family: 'W95FA';
    src: url('https://cdn.jsdelivr.net/gh/scf4/w95fa@master/W95FA.otf') format('opentype');
}

:root {
    --win-gray: #c0c0c0;
    --win-white: #ffffff;
    --win-dark: #808080;
    --win-black: #000000;
    --win-blue: #000080;
    --win-teal: #008080;
}

* { box-sizing: border-box; -webkit-font-smoothing: none; text-rendering: optimizeSpeed; }

body {
    background-color: var(--win-teal);
    background-image: radial-gradient(var(--win-black) 0.5px, transparent 0.5px);
    background-size: 2px 2px;
    font-family: 'W95FA', "MS UI Gothic", sans-serif;
    margin: 0; padding: 0; height: 100vh; display: flex; flex-direction: column;
}

/* Sidebar Layout */
.forum-container { display: flex; flex-grow: 1; padding: 10px; gap: 10px; overflow: hidden; }
.sidebar { width: 180px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; }
.content-area { flex-grow: 1; overflow-y: auto; padding-bottom: 40px; }

/* Classic Window UI */
.window {
    background: var(--win-gray);
    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 0 var(--win-white), inset -1px -1px 0 0 var(--win-dark);
    margin-bottom: 10px;
}

.title-bar { background: var(--win-blue); padding: 2px 5px; color: white; font-weight: bold; font-size: 12px; }
.window-body { padding: 10px; }

/* Matrix Table */
table { width: 100%; border-collapse: collapse; background: white; border: 1px solid var(--win-black); }
th, td { border: 1px solid var(--win-dark); padding: 8px; text-align: center; font-size: 13px; }
th { background: var(--win-gray); box-shadow: inset 1px 1px var(--win-white); }
td:first-child { text-align: left; background: #e0e0e0; font-weight: bold; width: 35%; }

/* Side Tabs */
.side-tab {
    display: block; padding: 8px; background: var(--win-gray);
    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);
    text-decoration: none; color: black; font-weight: bold; margin-bottom: 4px;
}
.side-tab.active { border: 2px inset var(--win-black); background: #d0d0d0; }

.inset-panel {
    background: white; border: 2px solid;
    border-color: var(--win-dark) var(--win-white) var(--win-white) var(--win-dark);
    padding: 10px; margin-top: 5px; font-size: 12px;
}

/* Taskbar */
.taskbar {
    height: 30px; background: var(--win-gray); border-top: 2px solid var(--win-white);
    display: flex; align-items: center; padding: 2px; position: fixed; bottom: 0; width: 100%;
}
.win-button {
    height: 22px; padding: 0 8px; background: var(--win-gray);
    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);
    text-decoration: none; color: black; font-weight: bold; font-size: 11px; display: flex; align-items: center;
}
.clock { margin-left: auto; border: 2px inset; padding: 2px 10px; background: #c0c0c0; font-size: 11px; }