/* Taskbar */
.win95-taskbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 38px;
    background: linear-gradient(180deg, #c0c0c0 80%, #808080 100%);
    border-top: 2px solid #fff;
    border-bottom: 2px solid #404040;
    display: flex;
    align-items: center;
    z-index: 200;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    box-shadow: 0 -2px 0 #fff;
    padding: 0 8px;
}
.start-btn {
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #f0f0f0 70%, #b0b0b0 100%);
    border: 2px outset #fff;
    border-radius: 3px;
    padding: 2px 14px 2px 6px;
    font-weight: bold;
    font-size: 1.1em;
    color: #222;
    cursor: pointer;
    box-shadow: 1px 1px 0 #808080;
    margin-right: 10px;
    user-select: none;
    position: relative;
    z-index: 202;
}
.start-btn.active {
    border: 2px inset #fff;
    background: #b0b0b0;
}
.start-icon {
    width: 22px;
    height: 22px;
    margin-right: 6px;
    vertical-align: middle;
}
.taskbar-spacer {
    flex: 1;
}
.taskbar-info {
    color: #222;
    font-size: 1em;
    margin-right: 8px;
}
.taskbar-info a {
    color: #000080;
    text-decoration: underline;
    margin: 0 4px;
    font-size: 1em;
    cursor: pointer;
}
.taskbar-info a:hover {
    color: #ff00cc;
}
.taskbar-copyright {
    color: #222;
    font-size: 0.95em;
    margin-left: 10px;
    opacity: 0.7;
    font-family: 'MS Sans Serif', Arial, sans-serif;
}
/* Start Menu */
.start-menu {
    display: none;
    position: fixed;
    left: 8px;
    bottom: 46px;
    width: 240px;
    background: #f0f0f0;
    border: 2px outset #fff;
    box-shadow: 4px 4px 0 #808080;
    z-index: 300;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    padding-bottom: 8px;
}
.start-menu-header {
    background: linear-gradient(90deg, #000080 80%, #c0c0c0 100%);
    color: #fff;
    font-weight: bold;
    font-size: 1.1em;
    padding: 10px 10px 10px 12px;
    border-bottom: 2px solid #808080;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}
.start-menu-link {
    display: flex;
    align-items: center;
    padding: 10px 10px 10px 18px;
    color: #000;
    text-decoration: none;
    font-size: 1em;
    border-bottom: 1px solid #d0d0d0;
    transition: background 0.2s, color 0.2s;
}
.start-menu-link:last-child {
    border-bottom: none;
}
.start-menu-link:hover {
    background: #000080;
    color: #fff;
}
.start-menu-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
}
.start-menu-separator {
    border-top: 1px solid #b0b0b0;
    margin: 6px 0;
}
/* Windows 95 Window Styles */
.win95-window,
.win95-window2 {
    width: 100%;
    max-width: 900px;
    margin: 40px auto 0 auto;
    background: #f0f0f0;
    border: 2px solid #000;
    box-shadow: 8px 8px 0 #888;
    border-radius: 8px;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    animation: win95pop 0.2s;
    position: static !important;
}
.win95-window {
    overflow: hidden;
}
@keyframes win95pop {
    from { transform: translateX(-50%) scale(0.9);}
    to { transform: translateX(-50%) scale(1);}
}
.win95-titlebar {
    background: linear-gradient(90deg, #000080 80%, #c0c0c0 100%);
    color: #fff;
    font-weight: bold;
    font-size: 1.1em;
    padding: 8px 12px;
    border-bottom: 2px solid #808080;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 6px 6px 0 0;
    user-select: none;
}
.win95-window-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}
.win95-close {
    background: #c0c0c0;
    border: 2px outset #fff;
    color: #800;
    font-size: 1.3em;
    font-weight: bold;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    margin-left: 10px;
    transition: background 0.2s;
}
.win95-close:hover {
    background: #ff0000;
    color: #fff;
    border: 2px inset #fff;
}
.win95-window-content {
    padding: 24px 18px 18px 18px;
    color: #222;
    font-size: 1.1em;
    background: #fff;
    border-radius: 0 0 6px 6px;
    text-align: center;
}
/* Overlay Windows */
.win95-window95 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    min-width: 0;
    min-height: 0;
    max-width: none;
    max-height: none;
    background: #f0f0f0;
    border: 2px solid #000;
    box-shadow: 8px 8px 0 #888;
    z-index: 5000;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    animation: win95pop 0.2s;
}
.win95-window95-titlebar {
    background: linear-gradient(90deg, #000080 80%, #c0c0c0 100%);
    color: #fff;
    font-weight: bold;
    font-size: 1.1em;
    padding: 4px 12px 4px 8px;
    border-bottom: 2px solid #808080;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 2px 2px 0 0;
    user-select: none;
    height: 32px;
}
.win95-window95-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}
.win95-window95-controls {
    display: flex;
    align-items: center;
    gap: 2px;
}
.win95-window95-btn {
    background: #c0c0c0;
    border: 2px outset #fff;
    color: #800;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 2px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    margin-left: 2px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.win95-window95-btn:hover {
    background: #ff0000;
    color: #fff;
    border: 2px inset #fff;
}
.win95-window95-menubar {
    background: #e0e0e0;
    border-bottom: 1px solid #b0b0b0;
    padding: 2px 8px;
    font-size: 1em;
    display: flex;
    gap: 18px;
    height: 26px;
    align-items: center;
    font-family: 'MS Sans Serif', Arial, sans-serif;
}
.win95-menu-item {
    color: #222;
    padding: 1px 8px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 1em;
}
.win95-menu-item:hover {
    background: #000080;
    color: #fff;
}
.win95-window95-content {
    position: relative;
    height: 100%;
    min-height: 100%;
    overflow-y: auto;
    padding: 32px 18px 18px 18px;
    color: #222;
    font-size: 1.1em;
    background: transparent;
    text-align: center;
    font-family: 'MS Sans Serif', Arial, sans-serif;
}
.win95-window95-statusbar {
    background: #e0e0e0;
    border-top: 2px solid #b0b0b0;
    color: #222;
    font-size: 0.98em;
    padding: 4px 12px;
    height: 28px;
    display: flex;
    align-items: center;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    border-radius: 0 0 2px 2px;
}
/* Notification styles */
#notification-container {
    position: fixed;
    right: 24px;
    bottom: 54px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}
.win95-notification {
    min-width: 260px;
    max-width: 340px;
    background: #f0f0f0;
    border: 2px solid #fff;
    border-bottom-color: #808080;
    border-right-color: #808080;
    box-shadow: 2px 2px 0 #808080, 4px 4px 0 #c0c0c0;
    border-radius: 0;
    margin-top: 12px;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    animation: notif-pop 0.2s;
    pointer-events: auto;
    opacity: 1;
    transition: opacity 0.7s;
    padding: 0;
}
.win95-notification.fade-out {
    opacity: 0;
    transition: opacity 0.7s;
}
.win95-notif-titlebar {
    background: #000080;
    color: #fff;
    font-weight: bold;
    font-size: 1em;
    padding: 2px 8px 2px 8px;
    border-bottom: 1px solid #808080;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    font-family: 'MS Sans Serif', Arial, sans-serif;
    height: 22px;
}
.win95-notif-close {
    background: #c0c0c0;
    border: 1px solid #fff;
    border-bottom-color: #808080;
    border-right-color: #808080;
    color: #800;
    font-size: 1em;
    font-weight: bold;
    border-radius: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-left: 8px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.win95-notif-close:hover {
    background: #ff0000;
    color: #fff;
    border: 1px inset #fff;
}
.win95-notif-content {
    padding: 10px 12px 10px 12px;
    color: #222;
    font-size: 1em;
    background: #f0f0f0;
    border-radius: 0;
    text-align: left;
    font-family: 'MS Sans Serif', Arial, sans-serif;
}
@keyframes notif-pop {
    from { transform: translateY(30px) scale(0.95); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}
/* BSOD */
.bsod {
    background: #0000aa !important;
    color: #fff !important;
    min-height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0; left: 0;
    z-index: 9999;
    font-family: 'Consolas', 'Courier New', monospace;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 40px;
    font-size: 1.4em;
}
.bsod pre {
    color: #fff;
    font-size: 1.1em;
    margin: 0;
    white-space: pre-wrap;
}
