/* Terminal Theme Styles */

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.terminal-glow {
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
    border: 1px solid #00FF41;
}

.terminal-text-glow {
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.6);
}

.scanline {
    width: 100%;
    height: 2px;
    background: rgba(0, 255, 65, 0.1);
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { top: 0; }
    100% { top: 100%; }
}

body::before {
    content: " ";
    display: block;
    position: fixed;
    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: 100;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

.crt-flicker {
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0% { opacity: 0.97; }
    5% { opacity: 0.95; }
    10% { opacity: 0.9; }
    15% { opacity: 0.98; }
    20% { opacity: 0.92; }
    25% { opacity: 0.99; }
    30% { opacity: 0.91; }
    35% { opacity: 0.96; }
    40% { opacity: 0.9; }
    45% { opacity: 0.98; }
    50% { opacity: 0.93; }
    55% { opacity: 0.95; }
    60% { opacity: 0.91; }
    65% { opacity: 0.97; }
    70% { opacity: 0.93; }
    75% { opacity: 0.99; }
    80% { opacity: 0.94; }
    85% { opacity: 0.92; }
    90% { opacity: 0.98; }
    95% { opacity: 0.95; }
    100% { opacity: 0.97; }
}

body {
    min-height: max(884px, 100dvh);
    background-color: #0A0A0A;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #00FF41;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    background: #131313;
    color: #00FF41;
    border: 1px solid #00FF41;
    border-radius: 0;
    z-index: 200;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-color: #00FF41;
    color: #00FF41;
}

.toast.error {
    border-color: #FF0000;
    color: #FF0000;
}

/* Recording Indicator */
.recording-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #FF0000;
    border-radius: 50%;
    animation: pulse 1s infinite;
    margin-right: 8px;
}

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

/* Disabled State */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

::-webkit-scrollbar-track {
    background: #0A0A0A;
}

::-webkit-scrollbar-thumb {
    background: #00FF41;
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: #00CC35;
}

/* Input Focus Styles */
input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 40;
}
