/* --- NEU: Terminal Styles --- */
/* --- indexdata/css/terminal.css --- */

:root {
    --terminal-bg: #0c0c0c;
    --terminal-text: #00ff41;
    --terminal-secondary: #888;
}

.terminal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(12, 12, 12, 0.98);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--terminal-text);
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
    padding: 20px;
    z-index: 2000;
    
    display: flex;
    flex-direction: column;

    /* Animationslogik */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.terminal-container.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.terminal-output {
    flex-grow: 1;
    overflow-y: auto;
    line-height: 1.5;
    white-space: pre-wrap; /* Wichtig für Zeilenumbrüche */
}

.terminal-output .terminal-line {
    display: block;
}

/* Spezifische Farben für den Output */
.terminal-output .command-line {
    color: var(--terminal-secondary);
}
.terminal-output .command-line .prompt {
    color: var(--terminal-text);
}

.terminal-output .help-command {
    color: #00e5ff; /* Cyan */
    font-weight: bold;
}
.terminal-output .help-description {
    color: var(--terminal-text);
    font-weight: normal;
}
.terminal-output .error-message {
    color: #ff4757; /* Rot */
}

/* --- NEU: Zusätzliche Klassen für Terminal-Nachrichten --- */
.terminal-output .success-message {
    color: #39d353;
}

.terminal-output .info-message {
    color: #57a6ff;
}

.terminal-output .warning-message {
    color: #f8e75c;
}

/* --- NEU: Styles für den gefälschten Ladebalken --- */
.terminal-output .progress-bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.terminal-output .progress-bar-wrapper {
    width: 50%;
    height: 20px;
    background-color: #222;
    border: 1px solid var(--terminal-secondary);
}
.terminal-output .progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--terminal-text);
    transition: width 0.1s linear;
}
.terminal-output .progress-percentage {
    font-weight: bold;
}


.terminal-input-line {
    display: flex;
    align-items: center;
    width: 100%;
}

.terminal-prompt {
    white-space: nowrap;
    margin-right: 8px;
}

.terminal-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--terminal-text);
    font-family: inherit;
    font-size: inherit;
    caret-color: var(--terminal-text);
}

.terminal-input:focus {
    outline: none;
}

/* Custom Scrollbar für das Terminal */
.terminal-output::-webkit-scrollbar {
    width: 6px;
}
.terminal-output::-webkit-scrollbar-track {
    background: transparent;
}
.terminal-output::-webkit-scrollbar-thumb {
    background-color: rgba(0, 255, 65, 0.2);
    border-radius: 10px;
}
.terminal-output::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 255, 65, 0.4);
}