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

body {
    background: #000;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    height: 100vh;
}

.crt-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, #001100 0%, #000000 70%);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: perspective(800px) rotateX(2deg) rotateY(-1deg);
}

.crt-screen {
    width: 90%;
    height: 90%;
    background: #000;
    border: 20px solid #333;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        inset 0 0 100px rgba(0, 255, 0, 0.15),
        0 0 150px rgba(0, 255, 0, 0.3),
        inset 0 0 40px rgba(0, 0, 0, 0.9);
    filter: contrast(1.2) brightness(1.1);
    transform: perspective(1000px) rotateY(1deg);
}

.crt-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 120% 80% at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.4) 100%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 0, 0.03) 0%, transparent 70%),
        linear-gradient(0deg, rgba(0, 255, 0, 0.02) 50%, transparent 50%);
    pointer-events: none;
    z-index: 999;
    border-radius: 10px;
}

.crt-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 100% 100% at 50% 50%, transparent 20%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
    z-index: 998;
    border-radius: 10px;
}

.crt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.scanlines {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 0, 0.05) 2px,
        rgba(0, 255, 0, 0.05) 4px
    );
    animation: flicker 0.15s infinite alternate, scanlineMove 8s linear infinite;
}

.phosphor-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, rgba(0, 255, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 255, 0, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 0, 0.01) 0%, transparent 70%);
    animation: glow 2s ease-in-out infinite alternate, phosphorShift 6s ease-in-out infinite;
}

@keyframes flicker {
    0% { opacity: 1; }
    100% { opacity: 0.96; }
}

@keyframes glow {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

@keyframes scanlineMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

@keyframes phosphorShift {
    0% { opacity: 0.8; filter: blur(0px); }
    50% { opacity: 1; filter: blur(0.5px); }
    100% { opacity: 0.8; filter: blur(0px); }
}

/* Power On Effect Styles */
#powerOnEffect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1001;
    pointer-events: none;
    animation: fadeOutPowerOnBg 4s forwards;
}

#powerOnEffect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 15px 5px #fff, 0 0 30px 15px #00ffff, 0 0 60px 30px #0000ff;
    transform: translate(-50%, -50%);
    animation:
        powerOnDot 0.5s forwards,
        powerOnLine 0.7s 0.5s forwards,
        powerOnScreen 1s 1.2s forwards;
}

@keyframes fadeOutPowerOnBg {
    0% { background: #000; }
    80% { background: #000; }
    100% { background: transparent; }
}

@keyframes powerOnDot {
    from {
        width: 0;
        height: 0;
        opacity: 0;
    }
    to {
        width: 4px;
        height: 4px;
        opacity: 1;
    }
}

@keyframes powerOnLine {
    from {
        transform: translate(-50%, -50%) scaleX(1);
    }
    to {
        transform: translate(-50%, -50%) scaleX(500);
    }
}

@keyframes powerOnScreen {
    from {
        transform: translate(-50%, -50%) scaleX(500) scaleY(1);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -50%) scaleX(500) scaleY(500);
        opacity: 0;
    }
}

@keyframes discoveryPulse {
    0% { 
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes screenShake {
    0% { transform: perspective(800px) rotateX(2deg) rotateY(-1deg) translateX(0); }
    10% { transform: perspective(800px) rotateX(2deg) rotateY(-1deg) translateX(-3px) rotateZ(0.5deg); }
    20% { transform: perspective(800px) rotateX(2deg) rotateY(-1deg) translateX(3px) rotateZ(-0.5deg); }
    30% { transform: perspective(800px) rotateX(2deg) rotateY(-1deg) translateX(-2px) rotateZ(0.3deg); }
    40% { transform: perspective(800px) rotateX(2deg) rotateY(-1deg) translateX(2px) rotateZ(-0.3deg); }
    50% { transform: perspective(800px) rotateX(2deg) rotateY(-1deg) translateX(-1px) rotateZ(0.2deg); }
    60% { transform: perspective(800px) rotateX(2deg) rotateY(-1deg) translateX(1px) rotateZ(-0.2deg); }
    70% { transform: perspective(800px) rotateX(2deg) rotateY(-1deg) translateX(-0.5px) rotateZ(0.1deg); }
    80% { transform: perspective(800px) rotateX(2deg) rotateY(-1deg) translateX(0.5px) rotateZ(-0.1deg); }
    90% { transform: perspective(800px) rotateX(2deg) rotateY(-1deg) translateX(-0.2px); }
    100% { transform: perspective(800px) rotateX(2deg) rotateY(-1deg) translateX(0); }
}

@keyframes glitchFlash {
    0% { opacity: 0; }
    10% { opacity: 0.8; }
    20% { opacity: 0.2; }
    30% { opacity: 0.9; }
    40% { opacity: 0.1; }
    50% { opacity: 0.7; }
    60% { opacity: 0.3; }
    70% { opacity: 0.8; }
    80% { opacity: 0.1; }
    90% { opacity: 0.5; }
    100% { opacity: 0; }
}

@keyframes warningPulse {
    0% { 
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes typewriter {
    0% { 
        opacity: 0;
        transform: translateY(20px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes confidentialOpen {
    0% { 
        opacity: 0;
        transform: scale(0.9) rotateX(10deg);
        filter: blur(2px);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02) rotateX(-2deg);
        filter: blur(1px);
    }
    100% { 
        opacity: 1;
        transform: scale(1) rotateX(0deg);
        filter: blur(0px);
    }
}

@keyframes fadeInOut {
    0% { 
        opacity: 0;
        transform: translateX(20px);
    }
    20% {
        opacity: 1;
        transform: translateX(0);
    }
    80% {
        opacity: 1;
        transform: translateX(0);
    }
    100% { 
        opacity: 0;
        transform: translateX(20px);
    }
}

@keyframes slideInOut {
    0% { 
        opacity: 0;
        transform: translateY(20px);
    }
    10% {
        opacity: 1;
        transform: translateY(0);
    }
    90% {
        opacity: 1;
        transform: translateY(0);
    }
    100% { 
        opacity: 0;
        transform: translateY(20px);
    }
}

@keyframes distortionWave {
    0% { 
        opacity: 0;
        transform: skewX(0deg);
    }
    25% {
        opacity: 0.7;
        transform: skewX(2deg);
    }
    50% {
        opacity: 0.9;
        transform: skewX(-1deg);
    }
    75% {
        opacity: 0.5;
        transform: skewX(1deg);
    }
    100% { 
        opacity: 0;
        transform: skewX(0deg);
    }
}

.dust-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/dust.png');
    background-repeat: repeat;
    animation: dust-animation 20s linear infinite; /* duration will be overridden by JS */
    pointer-events: none;
    z-index: 1000;
}

@keyframes dust-animation {
    0% { background-position: 0 0; }
    100% { background-position: -512px 512px; }
}

.cmd-line {
    margin: 0;
    padding: 0;
    line-height: 1.2;
    color: #c0c0c0;
}

.cmd-window .cmd-content {
    font-family: 'Courier New', monospace !important;
}

.cmd-window .cmd-input {
    caret-color: #c0c0c0;
}

.cmd-window .cmd-input::selection {
    background: #c0c0c0;
    color: #000;
}

/* Boot sequence */
.boot-sequence {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 1;
    transition: opacity 1s ease-out;
}

.boot-sequence.hidden {
    opacity: 0;
    pointer-events: none;
}

.boot-text {
    color: #00ff00;
    font-size: 18px;
    text-shadow: 0 0 10px #00ff00;
    text-align: left;
    max-width: 600px;
}

.boot-line {
    margin: 5px 0;
    font-family: 'Courier New', monospace;
    min-height: 22px; 
}

.smiley-face {
    font-size: 48px;
    color: #00ff00;
    text-shadow: 0 0 20px #00ff00;
    animation: smileyGlow 1s ease-in-out;
    margin-top: 20px;
    opacity: 0;
}

@keyframes smileyGlow {
    0% { 
        opacity: 0;
        transform: scale(0.5);
        filter: brightness(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
        filter: brightness(1.5);
    }
    100% { 
        opacity: 1;
        transform: scale(1);
        filter: brightness(1);
    }
}

/* Document interface */
.document-container {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 20, 0, 0.9);
    color: #00ff00;
    padding: 20px;
    opacity: 0;
    overflow-y: auto;
    transition: opacity 1s ease-in;
}

.document-container.visible {
    opacity: 1;
}

.document-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #00ff00;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.save-button {
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 8px 16px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px #00ff00;
}

.save-button:hover {
    background: rgba(0, 255, 0, 0.4);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.save-button:active {
    transform: scale(0.95);
}

.status-indicator {
    font-size: 11px;
    color: #ffaa00;
    text-shadow: 0 0 3px #ffaa00;
    min-width: 80px;
    text-align: center;
}

.status-indicator.success {
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}

.status-indicator.error {
    color: #ff4444;
    text-shadow: 0 0 5px #ff4444;
}

.status-indicator.editing {
    color: #ffaa00;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.terminal-prompt {
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 0 5px #00ff00;
}

.timestamp {
    font-size: 12px;
    opacity: 0.7;
}

.document-content {
    max-width: 800px;
    margin: 0 auto;
}

.profile-section {
    margin-bottom: 25px;
    padding: 20px;
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 20, 0, 0.6) 100%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 20px,
            rgba(0, 255, 0, 0.01) 20px,
            rgba(0, 255, 0, 0.01) 40px
        );
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.1),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.profile-section:hover {
    border-color: rgba(0, 255, 0, 0.5);
    box-shadow: 
        0 0 30px rgba(0, 255, 0, 0.2),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.section-title {
    color: #ff4444;
    font-size: 20px;
    margin-bottom: 20px;
    text-shadow: 
        0 0 10px #ff4444,
        0 0 20px rgba(255, 68, 68, 0.5);
    border-bottom: 2px solid #ff4444;
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00ff00;
    animation: titleUnderline 2s ease-in-out infinite;
}

@keyframes titleUnderline {
    0%, 100% { width: 0; }
    50% { width: 30%; }
}

.field-group {
    margin-bottom: 18px;
    padding: 10px;
    border-left: 3px solid rgba(255, 170, 0, 0.3);
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 5px 5px 0;
    transition: border-color 0.3s ease;
}

.field-group:hover {
    border-left-color: rgba(255, 170, 0, 0.6);
    background: rgba(0, 0, 0, 0.4);
}

label {
    display: block;
    color: #ffaa00;
    font-size: 14px;
    margin-bottom: 5px;
    text-shadow: 0 0 5px #ffaa00;
}

.editable-field {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 8px;
    min-height: 30px;
    border-radius: 3px;
    outline: none;
    transition: all 0.3s ease;
    position: relative;
}

.editable-field:focus {
    border-color: #ff4444;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

.editable-field:empty:before {
    content: attr(data-placeholder);
    color: rgba(0, 255, 0, 0.4);
    font-style: italic;
}

.editable-field.large {
    min-height: 80px;
}

/* Custom scrollbar */
.document-container::-webkit-scrollbar {
    width: 10px;
}

.document-container::-webkit-scrollbar-track {
    background: #000;
}

.document-container::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 5px;
}

.document-container::-webkit-scrollbar-thumb:hover {
    background: #ff4444;
}

.nav-button {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.3), rgba(255, 68, 68, 0.2));
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 10px 20px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px #00ff00;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.nav-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-button:hover:before {
    left: 100%;
}

.nav-button:hover {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.4), rgba(0, 255, 0, 0.3));
    border-color: #ff4444;
    color: #ff4444;
    text-shadow: 0 0 10px #ff4444;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
    transform: translateY(-2px);
}

.nav-button.editor-btn {
    border-color: #ffaa00;
    color: #ffaa00;
    text-shadow: 0 0 5px #ffaa00;
}

.nav-button.editor-btn:hover {
    border-color: #ffaa00;
    color: #ffaa00;
    text-shadow: 0 0 10px #ffaa00;
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.3);
}

/* Floppy disk interface */
.floppy-container {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #c0c0c0;
    color: #000;
    padding: 0;
    opacity: 0;
    overflow: hidden;
    transition: opacity 1s ease-in;
    display: none;
    font-family: 'MS Sans Serif', sans-serif;
    cursor: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAYCAYAAADKx8xmAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAdgAAAHYBTnsmCAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAFYSURBVDiNpZM9SwNBEIafgxBsLGy1sLWwsLGwsLCwsLGwsLWwsLGwsLGwsLWwsLGwsLWwsLGwsLGwsLWwsLGwsLGwsLWwsLGwsLWwsLGwsLGwsLGwsLGwsLGwsLGwsLGwsLWwsLGwsLWw') no-repeat;
    background-size: contain;
}

.floppy-container.visible {
    opacity: 1;
    display: block;
}

.windows-desktop {
    width: 100%;
    height: 100vh;
    background: #008080;
    position: relative;
    overflow: hidden;
}

.file-explorer-window {
    position: absolute;
    top: 50px;
    left: 50px;
    width: calc(100% - 100px);
    height: calc(100% - 150px);
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
}

.window-title-bar {
    height: 20px;
    background: linear-gradient(90deg, #0a246a 0%, #1084d0 100%);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 4px;
    font-weight: bold;
    font-size: 11px;
    cursor: move;
    user-select: none;
}

.window-title-bar:active {
    cursor: grabbing;
}

.window-controls {
    margin-left: auto;
    display: flex;
    gap: 2px;
}

.window-control-btn {
    width: 16px;
    height: 14px;
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.window-control-btn:active {
    border: 1px inset #c0c0c0;
}

.menu-bar {
    height: 20px;
    background: #c0c0c0;
    border-bottom: 1px solid #808080;
    display: flex;
    align-items: center;
    padding: 0 4px;
}

.menu-item {
    padding: 2px 8px;
    cursor: pointer;
    border: 1px solid transparent;
    font-size: 11px;
}

.menu-item:hover {
    border: 1px solid #0a246a;
    background: #316ac5;
    color: white;
}

.toolbar {
    height: 28px;
    background: #c0c0c0;
    border-bottom: 1px solid #808080;
    display: flex;
    align-items: center;
    padding: 0 4px;
    gap: 2px;
}

.toolbar-btn {
    width: 24px;
    height: 22px;
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.2s ease;
}

.toolbar-btn:hover {
    border: 1px solid #0a246a;
    background: #e0e0e0;
}

.toolbar-btn:active {
    border: 1px inset #c0c0c0;
}

.address-bar {
    height: 22px;
    background: #c0c0c0;
    border-bottom: 1px solid #808080;
    display: flex;
    align-items: center;
    padding: 0 4px;
    gap: 4px;
}

.address-label {
    font-size: 11px;
}

.address-input {
    flex: 1;
    height: 18px;
    border: 2px inset #c0c0c0;
    padding: 0 4px;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
    background: white;
}

.explorer-content {
    display: flex;
    height: calc(100% - 90px);
}

.folder-tree {
    width: 200px;
    background: white;
    border-right: 1px solid #808080;
    overflow-y: auto;
    padding: 4px;
}

.tree-item {
    display: flex;
    align-items: center;
    padding: 1px 0;
    cursor: pointer;
    font-size: 11px;
    white-space: nowrap;
}

.tree-item:hover {
    background: #316ac5;
    color: white;
}

.tree-item.selected {
    background: #316ac5;
    color: white;
}

.tree-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-view {
    flex: 1;
    background: white;
    overflow: auto;
    padding: 8px;
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    padding: 4px;
}

.file-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 11px;
    text-align: center;
    word-wrap: break-word;
    position: relative;
}

.file-icon-item:hover {
    background: rgba(49, 106, 197, 0.3);
}

.file-icon-item.selected {
    background: #316ac5;
    color: white;
    border: 1px dotted #000;
}

.file-icon-large {
    width: 32px;
    height: 32px;
    font-size: 24px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-name-label {
    font-size: 10px;
    max-width: 70px;
    word-wrap: break-word;
    line-height: 1.2;
}

.status-bar {
    height: 20px;
    background: #c0c0c0;
    border-top: 1px solid #808080;
    display: flex;
    align-items: center;
    padding: 0 4px;
    font-size: 11px;
}

.taskbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: #c0c0c0;
    border-top: 1px solid #dfdfdf;
    border-bottom: 1px solid #404040;
    display: flex;
    align-items: center;
    padding: 0 4px;
    z-index: 1000;
}

.start-button {
    height: 22px;
    padding: 0 16px;
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    font-weight: bold;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.start-button:active {
    border: 1px inset #c0c0c0;
}

.start-icon {
    width: 16px;
    height: 16px;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAADKx8xmAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAdgAAAHYBTnsmCAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAFYSURBVDiNpZM9SwNBEIafgxBsLGy1sLWwsLGwsLCwsLGwsLWwsLGwsLGwsLWwsLGwsLWwsLGwsLGwsLWwsLGwsLGwsLGwsLGwsLGwsLGwsLGwsLGwsLGwsLGwsLGwsLGwsLGwsLGwsLWwsLGwsLWw') no-repeat;
    background-size: contain;
}

.system-tray {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.clock {
    font-size: 11px;
    padding: 0 8px;
    border: 1px inset #c0c0c0;
    height: 18px;
    display: flex;
    align-items: center;
}

/* Loading animation */
.file-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    padding: 20px;
    z-index: 10000;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.loading-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
}

.loading-icon {
    width: 32px;
    height: 32px;
    background: url('data:image/gif;base64,R0lGODlhEAAQAPIAAP///wAAAMLCwkJCQgAAAGJiYoKCgpKSkiH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAADMwi63P4wyklrE2MIOggZnAdOmGYJRbExwroUmcG2LmDEwnHQLVsYOd2mBzkYDAdKa+dIAAAh+QQJCgAAACwAAAAAEAAQAAADNAi63P5OjCEgG4QMu7DmikRxQlFUYDEZIGBMRVsaqHwctXXf7WEYB4Ag1xjihkMZsiUkKhIAIfkECQoAAAAsAAAAABAAEAAAAzYIujIjK8pByJDMlFYvBoVjHA70GU7xSUJhmKtwHPAKzLO9HMaoKwJZ7Rf8AYPDDzKpZBqfvwQAIfkECQoAAAAsAAAAABAAEAAAAzMIunIlK0rnZBTwGPNMgQwmdsNgXGJUlIWEuR5oWUIpz8pAEAMe6TwfwyYsGo/IpFKSAAAh+QQJCgAAACwAAAAAEAAQAAADNAi63P5OjCEgG4QMu7DmikRxQlFUYDEZIGBMRVsaqHwctXXf7WEYB4Ag1xjihkMZsiUkKhIAOw==') no-repeat center;
    background-size: contain;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Page content styles */
.page-content {
    display: none;
    animation: pageSlide 0.5s ease-in-out;
}

.page-content.active {
    display: block;
}

@keyframes pageSlide {
    0% { 
        opacity: 0;
        transform: translateX(20px);
    }
    100% { 
        opacity: 1;
        transform: translateX(0);
    }
}

.page-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 5px;
}

.page-button {
    background: linear-gradient(135deg, rgba(0, 255, 0, 0.2), rgba(255, 68, 68, 0.1));
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 8px 16px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px #00ff00;
    font-weight: bold;
}

.page-button:hover {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.3), rgba(0, 255, 0, 0.2));
    border-color: #ff4444;
    color: #ff4444;
    text-shadow: 0 0 10px #ff4444;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.3);
}

.page-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #666;
    color: #666;
    text-shadow: none;
    box-shadow: none;
}

.page-indicator {
    color: #ffaa00;
    font-size: 14px;
    text-shadow: 0 0 5px #ffaa00;
    font-weight: bold;
}

/* Error dialog styles */
.error-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    z-index: 10002;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    min-width: 300px;
    cursor: move;
}

.error-content {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.error-icon {
    font-size: 32px;
    color: #ff0000;
}

.error-buttons {
    padding: 8px 16px;
    border-top: 1px solid #808080;
    text-align: right;
}

.error-button {
    background: #c0c0c0;
    border: 1px outset #c0c0c0;
    padding: 4px 16px;
    margin-left: 8px;
    cursor: pointer;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
}

.error-button:active {
    border: 1px inset #c0c0c0;
}

/* Corruption effects */
.corruption-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        rgba(255, 0, 0, 0.1) 1px,
        transparent 2px,
        transparent 4px
    );
    animation: corruptionGlitch 0.1s infinite;
}

@keyframes corruptionGlitch {
    0% { transform: translateY(0px); opacity: 0.3; }
    25% { transform: translateY(2px); opacity: 0.7; }
    50% { transform: translateY(-1px); opacity: 0.4; }
    75% { transform: translateY(1px); opacity: 0.6; }
    100% { transform: translateY(0px); opacity: 0.3; }
}

/* New Text Editor Styles */
.text-editor-window {
    position: fixed;
    top: 100px;
    left: 150px;
    width: 600px;
    height: 450px;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    z-index: 10001;
    font-family: 'MS Sans Serif', sans-serif;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.text-editor-window .editor-menu-bar {
    height: 20px;
    background: #c0c0c0;
    border-bottom: 1px solid #808080;
    display: flex;
    align-items: center;
    padding: 0 4px;
    flex-shrink: 0;
}

.text-editor-window .editor-menu-bar .menu-item {
    padding: 2px 8px;
    cursor: pointer;
    border: 1px solid transparent;
    font-size: 11px;
}

.text-editor-window .editor-menu-bar .menu-item:hover {
    border: 1px solid #0a246a;
    background: #316ac5;
    color: white;
}

.text-editor-window .editor-main {
    flex-grow: 1;
    display: flex;
    background: white;
    border: 2px inset #c0c0c0;
    margin: 4px;
    overflow: hidden;
}

.text-editor-window .line-numbers {
    width: 40px;
    padding: 8px 4px 8px 8px;
    text-align: right;
    background: #f0f0f0;
    border-right: 1px solid #808080;
    overflow: hidden;
    white-space: pre;
    line-height: 1.5;
    flex-shrink: 0;
    user-select: none;
}

.text-editor-window .editor-content-area {
    flex-grow: 1;
    padding: 8px;
    border: none;
    outline: none;
    resize: none;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-y: scroll;
    background: transparent;
}

.text-editor-window .editor-content-area.readonly {
    overflow-y: auto;
}

.text-editor-window .editor-content-area::-webkit-scrollbar {
    width: 12px;
}

.text-editor-window .editor-content-area::-webkit-scrollbar-track {
    background: #e0e0e0;
}

.text-editor-window .editor-content-area::-webkit-scrollbar-thumb {
    background: #a0a0a0;
    border: 1px solid #808080;
}

.text-editor-window .editor-status-bar {
    height: 20px;
    border-top: 1px solid #808080;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    font-size: 11px;
    flex-shrink: 0;
}

.text-editor-window .status-lines,
.text-editor-window .status-readonly {
    padding: 2px 8px;
    border-right: 1px solid #808080;
}
/* End of New Text Editor Styles */

/* New images page styles */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    min-height: 300px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px dashed rgba(0, 255, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
}

.upload-area {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    border: 2px dashed rgba(255, 170, 0, 0.5);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.upload-area:hover {
    border-color: rgba(255, 170, 0, 0.8);
    background: rgba(255, 170, 0, 0.1);
    box-shadow: 0 0 20px rgba(255, 170, 0, 0.2);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 10px;
    color: rgba(255, 170, 0, 0.7);
    animation: pulse 2s infinite;
}

.upload-text {
    color: rgba(255, 170, 0, 0.8);
    font-size: 14px;
    text-shadow: 0 0 5px rgba(255, 170, 0, 0.5);
}

.image-item {
    position: relative;
    border: 2px solid rgba(0, 255, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    aspect-ratio: 1;
}

.image-item:hover {
    border-color: rgba(255, 68, 68, 0.6);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
    transform: translateY(-2px);
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 10px;
    color: #00ff00;
    font-size: 11px;
    text-shadow: 0 0 5px #00ff00;
}

.image-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(255, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.image-delete-btn:hover {
    background: rgba(255, 68, 68, 1);
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .crt-screen {
        width: 95%;
        height: 95%;
        border-width: 10px;
    }
    
    .document-content {
        padding: 10px;
    }
    
    .header-controls {
        flex-direction: column;
        gap: 10px;
        align-items: flex-end;
    }
    
    .save-button {
        font-size: 10px;
        padding: 6px 12px;
    }
    
    .boot-text {
        font-size: 14px;
    }
    
    .resize-handle {
        width: 25px;
        height: 25px;
    }
    
    .delete-image-btn {
        width: 25px;
        height: 25px;
        font-size: 16px;
    }
    
    .draggable-image {
        border-width: 3px;
    }
}

.discovered-file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.discovered-files-dialog::-webkit-scrollbar {
    width: 8px;
}

.discovered-files-dialog::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.discovered-files-dialog::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 4px;
}

.discovered-files-dialog::-webkit-scrollbar-thumb:hover {
    background: #ff4444;
}

.confidential-file {
    box-shadow: 
        0 0 20px rgba(255, 0, 0, 0.5),
        2px 2px 4px rgba(0,0,0,0.5) !important;
}

@keyframes hwid-dialog-appear {
    0% { 
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.hwid-dialog {
    animation: hwid-dialog-appear 0.3s ease-out;
}

.hwid-dialog-button:hover {
    background: #e0e0e0 !important;
    border: 1px inset #c0c0c0 !important;
}

.hwid-dialog-button:active {
    border: 1px inset #c0c0c0 !important;
}

/* Ori Plushie App */
.ori-app-window {
    position: fixed;
    top: 150px;
    left: 250px;
    width: 300px;
    height: 350px;
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    z-index: 10001;
    font-family: 'MS Sans Serif', sans-serif;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.ori-app-content {
    height: calc(100% - 20px);
    background: white;
    border: 2px inset #c0c0c0;
    margin: 4px;
    padding: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ori-image {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.2s ease-out;
}

.ori-image.squish {
    animation: squish-bounce 0.2s ease-out;
}

.ori-explosion-gif {
    position: absolute;
    display: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

@keyframes squish-bounce {
    0% { transform: scale(1); }
    50% { 
      transform: scale(0.85, 1.15); 
    }
    100% { transform: scale(1); }
}