/* ==================== Terminal Log Panel ==================== */
.ng-terminal-log-container {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    display: flex;
    flex-direction: row;
    pointer-events: none;
}

/* Toggle Bar */
.ng-terminal-toggle-bar {
    position: relative;
    width: 50px;
    height: 100%;
    background: linear-gradient(90deg, transparent, #0a0a0a);
    border-left: 1px solid #1e3a3f;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
    padding: 0;
    border: none;
    color: #4a9eff;
    font-size: 24px;
}

.ng-terminal-toggle-bar:hover {
    background: linear-gradient(90deg, transparent, #0f0f0f);
    color: #00bcd4;
}

.ng-terminal-toggle-bar i {
    transition: transform 0.3s ease;
}

.ng-terminal-log-container.is-open .ng-terminal-toggle-bar {
    background: #0a0e12;
}

/* Attention blink for active jobs */
@keyframes ngBlinkOrange {
    0%, 100% { color: #ff8a33; text-shadow: 0 0 4px rgba(255,138,51,.45); filter: none; }
    50% { color: #ffb380; text-shadow: 0 0 10px rgba(255,138,51,.85); filter: brightness(1.15); }
}

.ng-terminal-toggle-bar.ng-attn i,
.ng-terminal-toggle-bar i.ng-attn-blink {
    animation: ngBlinkOrange 1.2s ease-in-out infinite;
    color: #ff8a33;
}

/* Weißes Blinken für laufende (START) Einträge */
@keyframes ngBlinkWhite {
    0%, 100% { color: #ffffff; text-shadow: 0 0 4px rgba(255,255,255,.35); filter: none; }
    50% { color: #e6e6e6; text-shadow: 0 0 10px rgba(255,255,255,.9); filter: brightness(1.15); }
}

/* Ganze Zeile blinkt – setzt Farbe für Type + Message während aktivem Bau/Forschung/Produktion */
.ng-log-build_start,
.ng-log-tech_start,
.ng-log-defense_start,
.ng-log-plane_start {
    animation: ngBlinkWhite 1.4s ease-in-out infinite;
}

/* Sicherstellen, dass Unterelemente nicht ihre alte Typfarbe erzwingen */
.ng-log-build_start .ng-log-type,
.ng-log-build_start .ng-log-message,
.ng-log-tech_start .ng-log-type,
.ng-log-tech_start .ng-log-message,
.ng-log-defense_start .ng-log-type,
.ng-log-defense_start .ng-log-message,
.ng-log-plane_start .ng-log-type,
.ng-log-plane_start .ng-log-message {
    color: inherit !important;
}

/* Terminal Panel */
.ng-terminal-panel {
    position: relative;
    width: 0;
    height: 100%;
    background: #0a0e12;
    border-left: 1px solid #1e3a3f;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.3s ease;
    pointer-events: all;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
}

.ng-terminal-log-container.is-open .ng-terminal-panel {
    width: 400px;
}

/* Header */
.ng-terminal-header {
    background: #0d1419;
    border-bottom: 1px solid #1e3a3f;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ng-terminal-title {
    color: #ffb902;
    font-family: 'Glass_TTY_VT220', monospace;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ng-terminal-title i {
    font-size: 18px;
    color: #4a9eff;
}

/* Filters */
.ng-terminal-filters {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.ng-terminal-filter {
    background: #0a0e12;
    border: 1px solid #1e3a3f;
    color: #666;
    font-family: 'Glass_TTY_VT220', monospace;
    font-size: 10px;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.ng-terminal-filter:hover {
    background: #1a1e22;
    color: #999;
    border-color: #2e5a5f;
}

.ng-terminal-filter.active {
    background: #1e3a3f;
    color: #4a9eff;
    border-color: #4a9eff;
}

/* Body */
.ng-terminal-body {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ng-terminal-output {
    height: 100%;
    overflow-y: auto;
    padding: 8px;
    font-family: 'Glass_TTY_VT220', monospace;
    font-size: 11px;
    line-height: 1.6;
    color: #ddd;
}

/* Scrollbar */
.ng-terminal-output::-webkit-scrollbar {
    width: 8px;
}

.ng-terminal-output::-webkit-scrollbar-track {
    background: #0a0e12;
}

.ng-terminal-output::-webkit-scrollbar-thumb {
    background: #1e3a3f;
    border-radius: 4px;
}

.ng-terminal-output::-webkit-scrollbar-thumb:hover {
    background: #2e5a5f;
}

/* Log Lines */
.ng-terminal-line {
    padding: 2px 0;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.ng-log-time {
    color: #666;
    font-size: 10px;
    min-width: 70px;
    flex-shrink: 0;
    line-height: 1.3;
}

.ng-log-date {
    display: block;
    color: #555;
    font-size: 9px;
    margin-top: 1px;
}

.ng-log-type {
    color: #4a9eff;
    font-size: 10px;
    min-width: 40px;
    flex-shrink: 0;
    padding-top: 1px;
}

.ng-log-message {
    color: #ddd;
    flex: 1;
    padding-top: 1px;
}

/* Type Colors */
.ng-log-build_start .ng-log-type,
.ng-log-build_complete .ng-log-type {
    color: #4a9eff;
}

.ng-log-build_complete .ng-log-message {
    color: #00cc66;
}

.ng-log-tech_start .ng-log-type,
.ng-log-tech_complete .ng-log-type {
    color: #9966ff;
}

.ng-log-tech_complete .ng-log-message {
    color: #cc66ff;
}

.ng-log-defense_start .ng-log-type,
.ng-log-defense_complete .ng-log-type {
    color: #ff6b35;
}

.ng-log-defense_complete .ng-log-message {
    color: #ff8855;
}

.ng-log-plane_start .ng-log-type,
.ng-log-plane_complete .ng-log-type {
    color: #00bcd4;
}

.ng-log-plane_complete .ng-log-message {
    color: #00e5ff;
}

.ng-log-login .ng-log-type,
.ng-log-system .ng-log-type {
    color: #ffb902;
}

.ng-log-login .ng-log-message {
    color: #ffd700;
}

/* Empty State */
.ng-terminal-empty {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-size: 12px;
}
