/* Loader Styles */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0f;
    /* Always dark for terminal boot */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fira Code', monospace;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader-content {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 217, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.1);
    max-width: 600px;
    width: 90%;
}

.boot-sequence {
    font-size: 0.9rem;
    color: var(--accent-success);
    margin-bottom: 1rem;
    min-height: 150px;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.boot-line {
    margin: 2px 0;
    opacity: 0;
    animation: fadeIn 0.1s forwards;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.boot-line.error {
    color: var(--accent-warning);
}

.boot-line.system {
    color: var(--text-secondary);
}

.boot-line.highlight {
    color: var(--accent-primary);
}

.loader-progress {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 1rem;
    position: relative;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
    transition: width 0.1s linear;
}

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

body.loaded {
    overflow: auto;
}

body.loaded #loader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Hide scrollbar during load */
body:not(.loaded) {
    overflow: hidden;
}