.typer-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.status-indicator {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background-color: #333;
    color: #999;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.status-indicator i {
    font-size: 0.8rem;
}

.status-indicator.active {
    background-color: rgba(16, 185, 129, 0.2);
    color: #10b981;
    text-shadow: 0 0 5px rgba(16, 185, 129, 0.5);
}

.status-indicator.active i {
    animation: blink 1s infinite;
}

.terminal-container {
    width: 100%;
    height: 500px;
    background-color: #0a0a0a;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    line-height: 1.5;
    color: #10b981; /* Neon green */
    text-shadow: 0 0 3px rgba(16, 185, 129, 0.5);
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    cursor: text;
    transition: all 0.3s ease;
    white-space: pre-wrap;
    word-break: break-all;
    outline: none;
}

/* Custom scrollbar for terminal */
.terminal-container::-webkit-scrollbar {
    width: 8px;
}
.terminal-container::-webkit-scrollbar-track {
    background: #111;
    border-radius: 4px;
}
.terminal-container::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
.terminal-container::-webkit-scrollbar-thumb:hover {
    background: #10b981;
}

.terminal-container:focus,
.terminal-container.active {
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3), inset 0 0 10px rgba(16, 185, 129, 0.1);
}

.terminal-output {
    display: inline;
}

.cursor {
    display: inline-block;
    width: 0.6em;
    height: 1.1em;
    background-color: #10b981;
    vertical-align: text-bottom;
    margin-left: 2px;
    box-shadow: 0 0 5px rgba(16, 185, 129, 0.8);
}

.terminal-container:focus .cursor,
.terminal-container.active .cursor {
    animation: blink 1s step-end infinite;
}

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

.help-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Fullscreen Styles */
.terminal-container:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    border: none;
    border-radius: 0;
    padding: 2rem;
    font-size: 20px; /* Slightly larger in fullscreen */
}

.terminal-container:-moz-full-screen {
    width: 100vw;
    height: 100vh;
    border: none;
    border-radius: 0;
    padding: 2rem;
    font-size: 20px;
}

.terminal-container:fullscreen {
    width: 100vw;
    height: 100vh;
    border: none;
    border-radius: 0;
    padding: 2rem;
    font-size: 20px;
}

/* Error/Success Popup Classes */
.access-denied, .access-granted {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: bold;
    padding: 1rem 3rem;
    border: 4px solid;
    background-color: #000;
    z-index: 10;
    animation: flash 0.5s infinite;
    pointer-events: none;
    white-space: nowrap;
}

/* Fullscreen mode popup adjustments */
.terminal-container:fullscreen .access-denied,
.terminal-container:fullscreen .access-granted {
    font-size: 4rem;
}

.access-denied {
    color: #ef4444;
    border-color: #ef4444;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.8);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
}

.access-granted {
    color: #10b981;
    border-color: #10b981;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
