/* ========================================================
   VOLQAN OS — WINDOWS 95 DARK MODE GUI SYSTEM STYLING
   ======================================================== */

/* Win95 Dark Mode color token grids */
:root {
    --win-desktop: #1a2f3b;     /* Desktop teal base under wallpaper */
    --win-gray: #2d3238;        /* Medium-dark concrete gray (Main Win95 panel) */
    --win-gray-light: #444a53;  /* Highlighting bevel gray */
    --win-gray-dark: #1b1e22;   /* Main shadow gray */
    --win-gray-black: #0c0d0f;  /* Deep shadow edge */
    
    --win-title-active: linear-gradient(90deg, #102e5c, #26559c); /* Active Title Bar Blue */
    --win-text: #e2e8f0;        /* Soft white system text */
    --win-input-bg: #15181c;    /* Sunken input box dark background */
    
    /* Vintage Terminal Output (Sunken CRT & Dark Browser View) */
    --crt-bg: #050709;
    --crt-green: #39ff14;       /* Neon Phosphor Green */
    --crt-green-dim: rgba(57, 255, 20, 0.15);
    
    --font-win: 'Tahoma', 'Verdana', sans-serif;
    --font-mono: 'Courier Prime', 'Courier New', monospace;
    
    --red: #f43f5e;
    --emerald: #10b981;
    --gold: #e5c07b;
    --cyan: #61afef;
}

/* Reset and Ambient Dark Room Workspace */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    /* Zoomed-in baseline size for prominent elements */
    font-size: 15px;
}

body.retro-desk-wallpaper {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #000000; /* Pure black room background */
    background-image: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ========================================================
   PURE BLACK CRT DISPLAY WRAPPER (LETTERBOX / PILLARBOX)
   ======================================================== */
.crt-monitor-container {
    position: relative;
    height: 100vh;
    width: auto;
    aspect-ratio: 4 / 3; /* keeps the 4:3 box aspect ratio! */
    max-width: 100vw;
    background-color: #000000;
    border: none;
    box-shadow: none;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Soft CRT Screen centered - connecting top & bottom, square edges, side borders */
.crt-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--crt-bg);
    border-left: 2px solid #1a1a1a;
    border-right: 2px solid #1a1a1a;
    border-top: none;
    border-bottom: none;
    border-radius: 0; /* Remove curvy ends, make it flat square top/bottom connection */
    overflow: hidden;
    z-index: 10;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.95);
}

/* CRT Screen Power-Off Collapsing animation */
.crt-screen.screen-off {
    animation: crt-power-off 0.35s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes crt-power-off {
    0% { transform: scale(1); filter: brightness(1) contrast(1); }
    40% { transform: scaleY(0.01) scaleX(1.1); filter: brightness(4) contrast(1.5); }
    80% { transform: scaleY(0.01) scaleX(0.01); filter: brightness(8); }
    100% { transform: scale(0); filter: brightness(0); visibility: hidden; }
}

/* CRT Curved Glass Scanline overlays */
.crt-glass-reflection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 40;
    pointer-events: none;
    /* Soft vertical CRT scanlines plus horizontal monitor screen grids */
    background: 
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.2) 50%),
        radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 65%);
    background-size: 100% 3px, 100% 100%;
}

/* Vintage Desktop Wallpaper inside Screen */
.desktop-wallpaper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: url('assets/wallpaper.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.85) contrast(1.05); /* Slight analog CRT saturation values */
}

/* Desktop Icon Shortcuts Grid */
.desktop-icons-area {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.desktop-icon {
    width: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    gap: 4px;
}

.icon-image-wrapper {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pixel-desktop-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    image-rendering: pixelated; /* Keeps transparent dithered outlines crisp */
    filter: drop-shadow(1px 1px 0px rgba(0,0,0,0.85));
}

.icon-label {
    font-size: 10px;
    color: #ffffff;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.9), 1px 1px 3px rgba(0,0,0,0.9);
    padding: 1px 3px;
    border: 1px solid transparent;
    word-break: break-word;
    line-height: 1.2;
}
.desktop-icon:hover .icon-label {
    background-color: #102e5c;
    border: 1px dotted #ffffff;
}

/* Window Containers (Double-Bevel embossing) */
.win95-window {
    z-index: 20;
    box-shadow: 
        inset 1px 1px 0px var(--win-gray-light),
        inset -1px -1px 0px var(--win-gray-dark),
        2px 2px 8px rgba(0,0,0,0.6), 
        3px 3px 0px var(--win-gray-black);
    background-color: var(--win-gray);
    border: 1.5px solid #23272c;
    padding: 3px;
    display: flex;
    flex-direction: column;
    pointer-events: auto; /* Explicitly allow mouse clicks on windows */
}

.win95-window.minimized {
    display: none !important;
}

.dialog-box {
    width: 430px; /* Restored larger size (Zoomed-in look) */
    max-width: 100%;
}

.program-window {
    width: 580px; /* Restored prominent size */
    height: 430px; /* Default height to look cozy and fit perfectly */
    max-width: 100%;
    position: absolute; /* absolute is required for dragging and resizing context */
}

/* ========================================================
   OLD-SCHOOL DYNAMIC WINDOW RESIZING HANDLES
   ======================================================== */
.resize-handle {
    position: absolute;
    z-index: 9999;
    background: transparent; /* hidden click captures */
}

.resize-handle-n  { top: -4px; left: 4px; right: 4px; height: 8px; cursor: ns-resize; }
.resize-handle-s  { bottom: -4px; left: 4px; right: 4px; height: 8px; cursor: ns-resize; }
.resize-handle-e  { right: -4px; top: 4px; bottom: 4px; width: 8px; cursor: ew-resize; }
.resize-handle-w  { left: -4px; top: 4px; bottom: 4px; width: 8px; cursor: ew-resize; }
.resize-handle-nw { top: -4px; left: -4px; width: 8px; height: 8px; cursor: nwse-resize; }
.resize-handle-ne { top: -4px; right: -4px; width: 8px; height: 8px; cursor: nesw-resize; }
.resize-handle-se { bottom: -4px; right: -4px; width: 8px; height: 8px; cursor: nwse-resize; }
.resize-handle-sw { bottom: -4px; left: -4px; width: 8px; height: 8px; cursor: nesw-resize; }

/* Screen wrappers relative to internal CRT monitor screen viewport size */
.screen-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 30px); /* taskbar offset */
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.98);
}

.screen-wrapper.active {
    opacity: 1;
    visibility: visible;
    pointer-events: none; /* Let pointer events pass through empty screen areas to desktop icons */
    transform: scale(1);
}

/* Windows 95 Title Bar */
.win95-title-bar {
    height: 18px;
    background: var(--win-title-active);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
    font-weight: bold;
    font-size: 11px;
}

.title-text {
    display: flex;
    align-items: center;
    gap: 6px;
}

.win95-title-icon {
    width: 13px;
    height: 13px;
    object-fit: cover;
    image-rendering: pixelated;
    border-radius: 1px;
    border: 1px solid var(--win-gray-light);
}

.win95-controls {
    display: flex;
    gap: 2px;
}

.win-ctrl-btn {
    width: 14px;
    height: 14px;
    background-color: var(--win-gray);
    color: var(--win-text);
    font-family: var(--font-win);
    font-size: 9px;
    font-weight: bold;
    border: 1px solid #23272c;
    box-shadow: 
        inset 1px 1px 0px var(--win-gray-light),
        inset -1px -1px 0px var(--win-gray-dark),
        0.5px 0.5px 0px var(--win-gray-black);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}
.win-ctrl-btn:active {
    box-shadow: 
        inset 1px 1px 0px var(--win-gray-black),
        inset -1px -1px 0px var(--win-gray);
    border: 1px solid #14171a;
    padding: 1px 0 0 1px;
}

.win-ctrl-btn.close-btn {
    margin-left: 2px;
}

/* Win95 Window Body */
.win95-body {
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    overflow: hidden;
}

.program-window .win95-body {
    flex-grow: 1;
    height: calc(100% - 38px); /* subtract title and menu strip heights */
    overflow: hidden;
}

/* Dialog Box Layout */
.dialog-layout {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 12px;
    padding: 6px 2px;
}

.pixel-padlock-container {
    width: 76px;
    height: 88px;
    border-top: 1.5px solid var(--win-gray-black);
    border-left: 1.5px solid var(--win-gray-black);
    border-right: 1.5px solid var(--win-gray-light);
    border-bottom: 1.5px solid var(--win-gray-light);
    background-color: var(--win-gray-dark);
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.win95-user-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
}

.dialog-fields-pane {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dialog-instruction {
    color: var(--win-text);
    line-height: 1.3;
    margin-bottom: 4px;
}

.win95-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.win95-input-group {
    display: flex;
    align-items: center;
}

.win95-input-group label {
    width: 72px;
    font-size: 11px;
}

.win95-input-group input {
    flex-grow: 1;
    height: 20px;
    background-color: var(--win-input-bg);
    color: #ffffff;
    border-top: 1.5px solid var(--win-gray-dark);
    border-left: 1.5px solid var(--win-gray-dark);
    border-right: 1.5px solid var(--win-gray-light);
    border-bottom: 1.5px solid var(--win-gray-light);
    box-shadow: inset 1px 1px 0px var(--win-gray-black);
    padding: 0 4px;
    outline: none;
    font-family: var(--font-win);
    font-size: 11px;
}
.win95-input-group input:focus {
    outline: 1px dotted var(--win-text);
    outline-offset: -3px;
}

.password-input-container {
    flex-grow: 1;
    display: flex;
    gap: 4px;
}

/* W95 Button Styles */
.win95-btn {
    height: 20px;
    background-color: var(--win-gray);
    color: var(--win-text);
    font-family: var(--font-win);
    font-size: 11px;
    border: 1px solid #23272c;
    box-shadow: 
        inset 1.5px 1.5px 0px var(--win-gray-light),
        inset -1.5px -1.5px 0px var(--win-gray-dark),
        1px 1px 0px var(--win-gray-black);
    cursor: pointer;
    padding: 0 10px;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.win95-btn:active {
    box-shadow: 
        inset 1.5px 1.5px 0px var(--win-gray-black),
        inset -1.5px -1.5px 0px var(--win-gray);
    border: 1px solid #14171a;
    padding: 1px 0 0 1px;
}

.win95-btn.default-btn {
    border: 1.5px solid var(--win-gray-black);
    outline: 1px solid var(--win-gray-light);
}

.win95-action-row {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
}

/* Spinner */
.spinner {
    display: none;
    width: 9px;
    height: 9px;
    border: 1.5px solid var(--win-text);
    border-top-color: transparent;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* Win95 Status Bar */
.win95-status-bar {
    display: flex;
    gap: 3px;
    margin-top: 2px;
}

.status-cell-pane {
    background-color: var(--win-gray);
    border-top: 1.5px solid var(--win-gray-dark);
    border-left: 1.5px solid var(--win-gray-dark);
    border-right: 1.5px solid var(--win-gray-light);
    border-bottom: 1.5px solid var(--win-gray-light);
    box-shadow: inset 1px 1px 0px var(--win-gray-black);
    padding: 2px 4px;
    font-size: 9.5px;
    color: var(--win-text);
    flex-grow: 1;
}

.status-cell-pane.mini {
    flex-grow: 0;
    width: 80px;
    text-align: center;
    font-weight: bold;
}

#attempt-count {
    color: var(--red);
}

/* Retro Menu Strip */
.win95-menu-strip {
    height: 18px;
    background-color: var(--win-gray);
    border-bottom: 1px solid var(--win-gray-dark);
    box-shadow: inset 0 -1px 0 var(--win-gray-light);
    display: flex;
    padding: 0 6px;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.menu-item-wrapper {
    position: relative;
    cursor: pointer;
}

.menu-item {
    font-size: 11px;
    padding: 1px 4px;
    display: inline-block;
}
.menu-item:hover {
    background-color: #102e5c;
    color: #ffffff;
}

/* Dropdown Window Panels */
.win95-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    background-color: var(--win-gray);
    border: 1.5px solid #23272c;
    box-shadow: 
        inset 1px 1px 0px var(--win-gray-light),
        inset -1px -1px 0px var(--win-gray-dark),
        3px 3px 6px rgba(0,0,0,0.5);
    padding: 2px;
    z-index: 100;
    min-width: 130px;
}

.menu-item-wrapper:hover .win95-dropdown {
    display: block;
}

.dd-item {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 4px 10px;
    font-family: var(--font-win);
    font-size: 10.5px;
    color: var(--win-text);
    cursor: pointer;
    outline: none;
}
.dd-item:hover {
    background-color: #102e5c;
    color: #ffffff;
}

/* Browser Tool Strip styling */
.win95-tool-strip {
    background-color: var(--win-gray);
    border-bottom: 1.5px solid var(--win-gray-dark);
    display: flex;
    gap: 3px;
    padding: 3px 4px;
    align-items: center;
    flex-shrink: 0;
}

.tool-btn {
    background: none;
    border: 1.5px solid transparent;
    color: var(--win-text);
    padding: 2px 6px;
    font-size: 10.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
}
.tool-btn:hover:not(:disabled) {
    border-top-color: var(--win-gray-light);
    border-left-color: var(--win-gray-light);
    border-right-color: var(--win-gray-black);
    border-bottom-color: var(--win-gray-black);
    background-color: var(--win-gray);
}
.tool-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.tool-sep {
    height: 14px;
    width: 2px;
    background-color: var(--win-gray-dark);
    border-right: 1px solid var(--win-gray-light);
    margin: 0 2px;
}

/* Browser Address Strip */
.win95-address-strip {
    background-color: var(--win-gray);
    border-bottom: 2px solid var(--win-gray-dark);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 6px;
    flex-shrink: 0;
}

.address-label {
    font-size: 10.5px;
    color: var(--text-secondary);
}

.address-input-wrapper {
    flex-grow: 1;
    height: 20px;
    border-top: 1.5px solid var(--win-gray-black);
    border-left: 1.5px solid var(--win-gray-black);
    border-right: 1.5px solid var(--win-gray-light);
    border-bottom: 1.5px solid var(--win-gray-light);
    background-color: var(--win-input-bg);
    padding: 0 4px;
    display: flex;
    align-items: center;
}

.address-input-wrapper input {
    width: 100%;
    background: none;
    border: none;
    color: #ffffff;
    outline: none;
    font-family: var(--font-win);
    font-size: 10.5px;
}

/* Internet Explorer interior viewport (Sunken Web Panel) */
.browser-web-viewport {
    background-color: #121417; 
    border-top: 2px solid var(--win-gray-black);
    border-left: 2px solid var(--win-gray-black);
    border-right: 2px solid var(--win-gray-light);
    border-bottom: 2px solid var(--win-gray-light);
    flex-grow: 1;
    overflow-y: auto;
    position: relative;
    padding: 20px;
}

.portfolio-webpage {
    max-width: 500px;
    margin: 0 auto;
    color: #cdd3de;
}

.web-header {
    border-bottom: 1px solid #2a2e36;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.web-title {
    font-family: var(--font-win);
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 0.05em;
}

.web-subtitle {
    font-size: 9px;
    color: #ffffff;
    font-family: var(--font-mono);
    margin-top: 2px;
}

.web-content-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Vintage Web Panels (Motif / Netscape sunken style) */
.web-panel-group {
    background-color: #17191e;
    border: 1px solid #282c35;
    border-radius: 4px;
    padding: 12px;
}

.panel-section-title {
    font-size: 11px;
    color: var(--cyan);
    margin-bottom: 8px;
    border-bottom: 1px dashed rgba(97, 175, 239, 0.2);
    padding-bottom: 4px;
}

.web-dossier-table {
    width: 100%;
    border-collapse: collapse;
}

.web-dossier-table th, .web-dossier-table td {
    padding: 6px 0;
    font-size: 11px;
    text-align: left;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
}

.web-dossier-table th {
    color: var(--text-secondary);
    width: 30%;
}

.web-bullets {
    margin-left: 16px;
}
.web-bullets li {
    margin-bottom: 6px;
    font-size: 10.5px;
    list-style-type: square;
}

.connect-links-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ie-web-link {
    color: var(--cyan);
    text-decoration: underline;
    font-size: 11px;
    font-weight: bold;
}
.ie-web-link:hover {
    color: #ffffff;
}

.web-alert {
    background-color: #1a1c23;
    border: 1px dashed var(--cyan);
    padding: 10px;
    border-radius: 4px;
    font-size: 10px;
    line-height: 1.4;
    color: var(--cyan);
}

.web-search-box {
    background-color: #15181c;
    border: 1px solid #2a2e36;
    padding: 12px;
    border-radius: 4px;
}

.web-search-box label {
    font-size: 9px;
    color: #ffffff;
    display: block;
    margin-bottom: 6px;
}

.web-search-input-row {
    display: flex;
    gap: 6px;
}

.web-search-input-row input {
    flex-grow: 1;
    background-color: #0b0d0f;
    border: 1px solid #2a2e36;
    color: #ffffff;
    padding: 4px 8px;
    font-family: var(--font-win);
    font-size: 11px;
    outline: none;
}

.web-btn {
    background-color: #24292e;
    border: 1px solid var(--border-stark);
    color: #ffffff;
    padding: 0 12px;
    cursor: pointer;
    font-size: 10px;
}
.web-btn:hover {
    background-color: #2f363d;
    border-color: var(--cyan);
    color: var(--cyan);
}

.web-search-results {
    margin-top: 10px;
    font-size: 9.5px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.web-body-p {
    font-size: 11px;
    line-height: 1.5;
    color: #abb2bf;
}

/* Sunken CRT Monitor Terminal Screen (Inside Session) */
.secure-crt-screen {
    background-color: var(--crt-bg);
    border-top: 2px solid var(--win-gray-black);
    border-left: 2px solid var(--win-gray-black);
    border-right: 2px solid var(--win-gray-light);
    border-bottom: 2px solid var(--win-gray-light);
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.8);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
    height: 100%;
    min-height: 200px;
    overflow-y: auto;
    position: relative;
}

.secure-crt-screen::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 30;
    background-size: 100% 3px, 6px 100%;
    pointer-events: none;
}

.crt-header-stats {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--crt-green);
    border-bottom: 1px dashed var(--crt-green-dim);
    padding-bottom: 4px;
    opacity: 0.8;
}

/* ASCII Void Screen Center */
.crt-void-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    text-align: center;
    color: var(--crt-green);
}

.void-shield-icon {
    margin-bottom: 8px;
}

.user-photo-bevel {
    width: 88px;
    height: 88px;
    border-top: 2px solid var(--win-gray-black);
    border-left: 2px solid var(--win-gray-black);
    border-right: 2px solid var(--win-gray-light);
    border-bottom: 2px solid var(--win-gray-light);
    background-color: var(--crt-bg);
    padding: 2px;
    display: inline-block;
}

.vault-user-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
    border: 1px solid var(--crt-green);
    filter: sepia(1) hue-rotate(80deg) saturate(3.5) brightness(0.8);
    transition: filter var(--transition-fast);
}

.ascii-art {
    font-size: 10px;
    line-height: 1.2;
    white-space: pre;
    color: var(--crt-green);
    opacity: 0.9;
    margin-bottom: 12px;
    text-shadow: 0 0 3px var(--crt-green);
}

.crt-h2 {
    font-size: 12px;
    font-weight: bold;
    text-shadow: 0 0 4px var(--crt-green);
    margin-bottom: 6px;
}

.crt-para {
    font-size: 10px;
    max-width: 420px;
    line-height: 1.4;
    opacity: 0.8;
}

.crt-logs {
    margin-top: auto;
    font-size: 10px;
    border-top: 1px dashed var(--crt-green-dim);
    padding-top: 6px;
    color: var(--crt-green);
}

.crt-log {
    margin-bottom: 3px;
}

.blinking {
    animation: crt-blink 1s infinite step-end;
}
@keyframes crt-blink {
    from, to { opacity: 0; }
    50% { opacity: 1; }
}

/* ERROR STATE DISSOCIATION SHAKE */
.win95-window.error-shake {
    animation: w95-shake 0.4s ease-in-out;
    outline: 1.5px solid var(--red);
}

@keyframes w95-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}


/* ========================================================
   PERSISTENT WINDOWS 95 TASKBAR (Bottom layout)
   ======================================================== */
.win95-taskbar {
    position: absolute; /* Lock relative to screen container, not global window! VERY CRITICAL FIX for Moveable inside TV screen bounds! */
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px; 
    background-color: var(--win-gray);
    z-index: 1000; 
    border-top: 2px solid var(--win-gray-light);
    display: flex;
    align-items: center;
    padding: 2px 4px;
    gap: 6px;
}

/* Start Hide Button - Only text "Hide" */
.win95-hide-button {
    height: 22px;
    min-width: 48px;
    background-color: var(--win-gray);
    color: var(--win-text);
    font-family: var(--font-win);
    font-size: 11px;
    font-weight: bold;
    border: 1px solid #23272c;
    box-shadow: 
        inset 1.5px 1.5px 0px var(--win-gray-light),
        inset -1.5px -1.5px 0px var(--win-gray-dark),
        1px 1px 0px var(--win-gray-black);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    border-radius: 2px;
    padding: 0 8px;
}
.win95-hide-button:active, .win95-hide-button.active {
    box-shadow: 
        inset 1.5px 1.5px 0px var(--win-gray-black),
        inset -1.5px -1.5px 0px var(--win-gray);
    border: 1.5px solid #14171a;
    padding: 1px 7px 0 9px;
}

/* Active Window Tabs strip */
.win95-task-tabs {
    flex-grow: 1;
    display: flex;
    gap: 3px;
    height: 100%;
    align-items: center;
}

.win95-task-tab {
    width: 130px;
    height: 22px;
    background-color: var(--win-gray);
    border: 1px solid #23272c;
    box-shadow: 
        inset 1.5px 1.5px 0px var(--win-gray-light),
        inset -1.5px -1.5px 0px var(--win-gray-dark),
        0.5px 0.5px 0px var(--win-gray-black);
    color: var(--win-text);
    padding: 0 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-win);
    font-size: 10px;
    cursor: pointer;
    text-align: left;
    outline: none;
    border-radius: 2px;
    transition: width 0.1s steps(2);
}

.win95-task-tab.active {
    background-color: var(--win-gray-dark);
    box-shadow: 
        inset 1.5px 1.5px 0px var(--win-gray-black),
        inset -1px -1px 0px var(--win-gray);
    border-color: #14171a;
    padding: 1px 5px 0 7px; 
    font-weight: bold;
}

/* COLLAPSE INACTIVE (MINIMIZED) TABS INTO A SMALL SQUARE ICON BUTTON (NO TEXT!) */
.win95-task-tab:not(.active) {
    width: 24px !important;
    min-width: 24px !important;
    padding: 0 !important;
    justify-content: center !important;
}
.win95-task-tab:not(.active) .task-tab-label {
    display: none !important;
}

.task-tab-icon {
    width: 14px;
    height: 14px;
    object-fit: cover;
    image-rendering: pixelated;
    border-radius: 1px;
    flex-shrink: 0;
}

.task-tab-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* System Tray (Bevel Inset box) */
.win95-system-tray {
    border-top: 1.5px solid var(--win-gray-dark);
    border-left: 1.5px solid var(--win-gray-dark);
    border-right: 1.5px solid var(--win-gray-light);
    border-bottom: 1.5px solid var(--win-gray-light);
    box-shadow: inset 1px 1px 0px var(--win-gray-black);
    background-color: var(--win-gray);
    height: 100%;
    padding: 2px 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tray-wifi-icon {
    color: var(--win-gray-light);
    opacity: 0.5;
    cursor: not-allowed;
    display: flex;
    align-items: center;
}

.tray-clock {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: var(--win-text);
    line-height: 1.1;
    min-width: 54px;
}

.tray-clock-time {
    font-weight: bold;
}


/* ========================================================
   PHYSICAL HARDWARE MONITOR BEZEL BOTTOM PANEL
   ======================================================== */
.monitor-bezel-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background-color: #1a1e22; /* darker bezel strip */
    border-top: 2px solid #23282d;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.brand-badge {
    font-family: var(--font-win);
    font-size: 11px;
    font-weight: 900;
    color: #4b545c;
    letter-spacing: 0.1em;
}

.bezel-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.led-indicator-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.power-led {
    width: 7px;
    height: 7px;
    background-color: #10b981; /* Glowing Power Green */
    border-radius: 50%;
    box-shadow: 0 0 6px #10b981;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.power-led.led-off {
    background-color: #3b0712; /* Dull Off Red */
    box-shadow: none;
}

.led-label {
    font-size: 8px;
    color: #4b545c;
    font-weight: bold;
}

.bezel-knob {
    width: 12px;
    height: 12px;
    background-color: #101214;
    border: 1.5px solid #2f343a;
    border-radius: 50%;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.8);
    cursor: pointer;
    outline: none;
}
.bezel-knob:active {
    transform: rotate(30deg);
}

.bezel-power-btn {
    width: 16px;
    height: 16px;
    background-color: #2a2e36;
    border: 1.5px solid #0d0e10;
    box-shadow: 
        inset 1.5px 1.5px 0px #3c434f,
        inset -1.5px -1.5px 0px #131518,
        1px 1px 2px rgba(0,0,0,0.5);
    cursor: pointer;
    outline: none;
    border-radius: 2px;
}
.bezel-power-btn:active, .bezel-power-btn.btn-depressed {
    box-shadow: 
        inset 1.5px 1.5px 0px #0c0d0f,
        inset -1.5px -1.5px 0px #22252a;
    border: 1.5px solid #000000;
}


/* RESPONSIVE DESIGN VIEWPORT WRAPPERS */
@media (max-width: 1080px) {
    .crt-monitor-container {
        transform: scale(0.9);
    }
}

@media (max-width: 960px) {
    .crt-monitor-container {
        transform: scale(0.75);
    }
}

@media (max-width: 768px) {
    .crt-monitor-container {
        transform: scale(0.6);
    }
}

@media (max-width: 600px) {
    .crt-monitor-container {
        transform: scale(0.48);
    }
}

/* ========================================================
   VINTAGE DYNAMIC INTERNET EXPLORER STYLING
   ======================================================== */
.ie-spinner-logo-container {
    width: 22px;
    height: 22px;
    border-top: 1.5px solid var(--win-gray-black);
    border-left: 1.5px solid var(--win-gray-black);
    border-right: 1.5px solid var(--win-gray-light);
    border-bottom: 1.5px solid var(--win-gray-light);
    background-color: var(--win-gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
    flex-shrink: 0;
}

/* Spinning Retro Globe (CSS Keyframe rotation) */
.ie-spinner-logo {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, #25559c 20%, #102e5c 60%, #0c0d0f 100%);
    border: 1px solid #61afef;
    position: relative;
    box-shadow: 0 0 2px #61afef;
}

.ie-spinner-logo.spinning {
    animation: ie-spin-globe 1.2s linear infinite;
}

@keyframes ie-spin-globe {
    0% { transform: rotate(0deg) scale(1); filter: hue-rotate(0deg); }
    50% { transform: rotate(180deg) scale(1.1); filter: hue-rotate(180deg); }
    100% { transform: rotate(360deg) scale(1); filter: hue-rotate(360deg); }
}

/* Dynamic Loading Overlay inside Viewport */
.ie-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 7, 9, 0.94);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ie-loading-box {
    width: 280px;
    border: 1.5px solid var(--win-gray-light);
    background-color: var(--win-gray);
    padding: 12px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    border-radius: 2px;
}

.ie-progress-bar-container {
    height: 14px;
    background-color: var(--win-input-bg);
    border-top: 1.5px solid var(--win-gray-dark);
    border-left: 1.5px solid var(--win-gray-dark);
    border-right: 1.5px solid var(--win-gray-light);
    border-bottom: 1.5px solid var(--win-gray-light);
    padding: 1px;
    margin-top: 4px;
}

.ie-progress-bar-fill {
    height: 100%;
    width: 0%;
    background-color: #26559c;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,0.2);
}

/* Retro Visitor counter hit counter styles */
.hit-counter-box {
    display: inline-block;
    background-color: #000000;
    border: 2px solid var(--win-gray-light);
    padding: 4px 8px;
    font-family: var(--font-mono);
    color: #ff3333;
    font-size: 16px;
    letter-spacing: 2px;
    font-weight: bold;
    text-shadow: 0 0 5px #ff3333;
    margin: 8px 0;
    border-radius: 2px;
}

/* Social Links Row */
.social-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #17191e;
    border: 1px solid #2a2e36;
    color: #c8ccd4;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 10px;
    font-family: var(--font-tahoma);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.social-link-btn:hover {
    background: #2a2e36;
    color: #ffffff;
    border-color: #5a5f69;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.social-link-btn svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.social-link-btn:hover svg {
    opacity: 1;
}

/* Vintage Gifs & Construction themes */
.under-construction-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #1b1e22;
    border: 1px dashed rgba(255, 255, 255, 0.4);
    color: #ffffff;
    padding: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    margin-bottom: 10px;
    border-radius: 2px;
}

/* Guestbook posts */
.guestbook-logs {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px dashed #2a2e36;
    padding-top: 12px;
}

.guestbook-post {
    background-color: #17191e;
    border: 1px solid #282c35;
    padding: 8px;
    border-radius: 4px;
}

.guestbook-header {
    display: flex;
    justify-content: space-between;
    font-size: 9.5px;
    color: var(--gold);
    margin-bottom: 4px;
    border-bottom: 1px dashed rgba(229, 192, 123, 0.15);
    padding-bottom: 2px;
}

.guestbook-message {
    font-size: 11px;
    color: #ffffff;
    line-height: 1.4;
}

.guestbook-form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.guestbook-form-group label {
    font-size: 10.5px;
    color: var(--cyan);
    font-family: var(--font-mono);
}

.guestbook-form-group input, .guestbook-form-group textarea {
    background-color: #0b0d0f;
    border: 1px solid #2a2e36;
    color: #ffffff;
    padding: 4px 6px;
    font-family: var(--font-win);
    font-size: 11px;
    outline: none;
    border-radius: 2px;
}

.guestbook-form-group textarea {
    resize: none;
    height: 54px;
}

/* Netscape badges alignment */
.badge-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
    opacity: 0.65;
}

.badge-row img {
    height: 31px;
    image-rendering: pixelated;
}

/* ========================================================
   MAXIMIZED WINDOW UTILITY CLASSES
   ======================================================== */
.win95-window.maximized {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    z-index: 100 !important;
    max-width: 100% !important;
}

/* ========================================================
   SPOTIFY RETRO PLAYER UI (WINAMP MOTIF)
   ======================================================== */
.winamp-faceplate {
    background-color: #171c24;
    border-top: 2px solid var(--win-gray-light);
    border-left: 2px solid var(--win-gray-light);
    border-right: 2px solid var(--win-gray-black);
    border-bottom: 2px solid var(--win-gray-black);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 4px;
}

.winamp-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0b0f14;
    border: 1.5px solid var(--win-gray-black);
    padding: 6px 12px;
    border-radius: 3px;
    height: 42px;
}

.winamp-timer {
    font-size: 20px;
    color: #10b981; /* Neon green indicator */
    text-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
    letter-spacing: 1px;
    font-weight: 900;
}

.winamp-visualizer-container {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 30px;
    width: 80px;
    border-left: 1px solid rgba(255,255,255,0.1);
    padding-left: 6px;
}

.winamp-spectrum-bar {
    width: 6px;
    height: 3px; /* Controlled dynamically in JS */
    background-color: #10b981;
    transition: height 0.08s ease;
}

.winamp-track-ticker {
    background-color: #0b0f14;
    border: 1px solid var(--win-gray-black);
    color: #10b981;
    padding: 3px 6px;
    font-size: 9.5px;
    overflow: hidden;
    white-space: nowrap;
    border-radius: 2px;
}

.winamp-slider-container {
    display: flex;
    align-items: center;
    margin: 2px 0;
}

.wa-track-slider {
    width: 100%;
    height: 6px;
    background: #0b0f14;
    outline: none;
    border-radius: 3px;
    accent-color: #10b981;
    cursor: pointer;
}

.winamp-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}

.wa-btn {
    height: 20px;
    background-color: var(--win-gray);
    color: var(--win-text);
    border: 1px solid #23272c;
    box-shadow: 
        inset 1px 1px 0px var(--win-gray-light),
        inset -1px -1px 0px var(--win-gray-dark),
        0.5px 0.5px 0px var(--win-gray-black);
    cursor: pointer;
    font-size: 8px;
    font-weight: bold;
    outline: none;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wa-btn:active {
    box-shadow: 
        inset 1px 1px 0px var(--win-gray-black),
        inset -1px -1px 0px var(--win-gray);
    border: 1.5px solid #14171a;
    padding: 1px 0 0 1px;
}

.wa-volume-slider {
    width: 80%;
    height: 6px;
    background: #0b0f14;
    outline: none;
    accent-color: #10b981;
    cursor: pointer;
}

/* Playlist Editor */
.winamp-playlist-editor {
    flex-grow: 1;
    background-color: #0b0f14;
    border-top: 1.5px solid var(--win-gray-black);
    border-left: 1.5px solid var(--win-gray-black);
    border-right: 1.5px solid var(--win-gray-light);
    border-bottom: 1.5px solid var(--win-gray-light);
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-top: 4px;
    min-height: 90px;
}

.wa-playlist-header {
    background-color: #171c24;
    color: var(--win-text);
    font-size: 9px;
    padding: 3px 6px;
    border-bottom: 1px solid var(--win-gray-black);
    font-weight: bold;
    letter-spacing: 0.5px;
}

.wa-playlist-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 2px;
}

.wa-playlist-item {
    padding: 4px 6px;
    font-size: 10px;
    color: #abb2bf;
    cursor: pointer;
    border-bottom: 1px dashed rgba(255,255,255,0.02);
}

.wa-playlist-item:hover {
    background-color: rgba(255,255,255,0.03);
    color: #ffffff;
}

.wa-playlist-item.active {
    background-color: #26559c;
    color: #ffffff;
    font-weight: bold;
    border-bottom-color: transparent;
}

/* ========================================================
   SPINNING VINYL RECORD DISC STYLES
   ======================================================== */
.vinyl-record-container {
    position: relative;
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050709;
    border: 1px solid var(--win-gray-light);
    border-radius: 4px;
    box-shadow: inset 1.5px 1.5px 2px var(--win-gray-black);
    flex-shrink: 0;
}

.vinyl-disc {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle, #2a2a2a 25%, #151515 55%, #000000 100%);
    position: relative;
    box-shadow: 0 3px 6px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: vinyl-spin 3s linear infinite;
    animation-play-state: paused; /* Controlled dynamically in JavaScript */
    transition: transform 0.2s ease-in-out;
}

.vinyl-disc.spinning {
    animation-play-state: running;
}

@keyframes vinyl-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.vinyl-grooves {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    background: repeating-radial-gradient(
        circle,
        rgba(255, 255, 255, 0.04) 0px,
        rgba(255, 255, 255, 0.04) 1px,
        transparent 1.5px,
        transparent 3.5px
    );
    pointer-events: none;
}

.vinyl-label {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #1db954; /* Spotify Vibrant green */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 1px 1px 1px rgba(255,255,255,0.2), 0.5px 0.5px 1px rgba(0,0,0,0.6);
}

.vinyl-center-hole {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #050709;
    box-shadow: inset 0.5px 0.5px 0.5px rgba(255,255,255,0.1);
}


/* ========================================================
   EASTER EGG: dih.exe POPUP
   ======================================================== */
#dih-screen {
    pointer-events: none;
}
#dih-screen.active {
    pointer-events: none;
}

.dih-exe-window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    z-index: 999;
    pointer-events: auto;
    display: none;
    animation: dihShake 0.5s ease-in-out;
    box-shadow:
        inset 1px 1px 0px var(--win-gray-light),
        inset -1px -1px 0px var(--win-gray-dark),
        3px 3px 12px rgba(0, 0, 0, 0.6);
}

.dih-exe-window.visible {
    display: block;
}

.dih-exe-body {
    background: #1b1e22;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dih-meme-img {
    width: 100%;
    height: auto;
    display: block;
    image-rendering: auto;
}

@keyframes dihShake {
    0%   { transform: translate(-50%, -50%) rotate(0deg); }
    15%  { transform: translate(-50%, -50%) rotate(-5deg) scale(1.05); }
    30%  { transform: translate(-50%, -50%) rotate(5deg) scale(1.05); }
    45%  { transform: translate(-50%, -50%) rotate(-3deg); }
    60%  { transform: translate(-50%, -50%) rotate(3deg); }
    75%  { transform: translate(-50%, -50%) rotate(-1deg); }
    100% { transform: translate(-50%, -50%) rotate(0deg); }
}

