/* Loader Styles */
.terminal-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    transition: opacity 0.5s ease-out;
}

.terminal-loader.loaded {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    max-width: 600px;
    padding: 20px;
}

.loader-ascii {
    color: var(--primary);
    font-size: 10px;
    /* line-height: 1;
    margin-bottom: 30px; */
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

.loader-text {
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeIn 0.5s ease-in 0.3s forwards;
}

.loader-progress-container {
    width: 400px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeIn 0.5s ease-in 0.6s forwards;
}

.loader-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(var(--primary-rgba), 0.2);
    border: 1px solid var(--primary);
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.loader-progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--primary);
}

.loader-percentage {
    color: var(--primary);
    font-size: 12px;
    text-align: center;
}

.loader-status {
    color: var(--secondary);
    font-size: 11px;
    margin-top: 10px;
    min-height: 15px;
    opacity: 0.8;
}

.loader-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--primary);
    margin-left: 5px;
    animation: blink 1s infinite;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .loader-ascii {
        font-size: 6px;
    }
    
    .loader-progress-container {
        width: 90%;
        max-width: 300px;
    }
    
    .loader-text {
        font-size: 12px;
    }
}
