/* CRT Monitor Effects */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(18, 16, 16, 0) 50%,
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9999;
    animation: scanline 8s linear infinite;
}

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

.crt-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 255, 0, 0.02) 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    animation: flicker 0.15s infinite;
}

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

/* Terminal Cursor Blink */
.cursor-blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Login Container Glow */
.login-container {
    animation: login-glow 2s ease-in-out infinite alternate;
}

@keyframes login-glow {
    from {
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    }
    to {
        box-shadow: 0 0 40px rgba(0, 255, 0, 0.5);
    }
}

/* Terminal Output */
.terminal-output {
    font-family: 'Courier New', monospace;
    line-height: 1.5;
}

.terminal-line {
    margin-bottom: 4px;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.7);
}

/* Quick Access Tiles */
.quick-access-tile {
    width: 100%;
    padding: 12px;
    border: 1px solid rgb(20, 83, 45);
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-access-tile:hover {
    border-color: rgb(34, 197, 94);
    background: rgba(20, 83, 45, 0.3);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
    transform: translateX(4px);
}

.quick-access-tile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(34, 197, 94, 0.2),
        transparent
    );
    transition: left 0.5s;
}

.quick-access-tile:hover::before {
    left: 100%;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
    border-left: 1px solid rgb(20, 83, 45);
}

::-webkit-scrollbar-thumb {
    background: rgb(20, 83, 45);
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(34, 197, 94);
}

/* Text Shadow for Phosphor Effect */
body {
    text-shadow: 0 0 2px rgba(0, 255, 0, 0.8);
}

/* Input Focus Glow */
input:focus {
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.9);
}

/* Prevent text selection on certain elements */
.quick-access-tile,
#mode-indicator,
#current-dir,
#prompt {
    user-select: none;
}

/* BASIC Mode Styling */
.basic-mode {
    background-color: #0000aa !important;
    color: #aaaaff !important;
}

.basic-mode .terminal-line {
    color: #aaaaff !important;
    text-shadow: 0 0 5px rgba(170, 170, 255, 0.7) !important;
}

.basic-mode #command-input {
    color: #aaaaff !important;
}

.basic-mode #prompt {
    color: #aaaaff !important;
}

/* Error Messages */
.error-text {
    color: #ff5555 !important;
    text-shadow: 0 0 5px rgba(255, 85, 85, 0.7) !important;
}

/* Success Messages */
.success-text {
    color: #55ff55 !important;
    text-shadow: 0 0 5px rgba(85, 255, 85, 0.7) !important;
}

/* Boot Sequence Animation */
@keyframes boot {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.boot-animation {
    animation: boot 0.5s ease-in;
}
