/* Beekeeper — Custom styles on top of Pico CSS */

/* Pipeline visualization */
.pipeline {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    margin: 0.5rem 0;
}

.step {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.step-sm {
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
    min-width: 80px;
}

.step-passed {
    background-color: #2d6a4f;
    color: #d8f3dc;
}

.step-current {
    background-color: #e9c46a;
    color: #264653;
    animation: pulse 2s ease-in-out infinite;
}

.step-pending {
    background-color: #495057;
    color: #adb5bd;
}

.step-error {
    background-color: #d62828;
    color: #fff;
}

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

/* Status colors in cluster table */
.status-converged {
    color: #52b788;
}

.status-reconciling {
    color: #e9c46a;
}

/* Log viewer */
.log-container {
    max-height: 500px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.75rem;
    background: var(--pico-background-color);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 4px;
    padding: 0.5rem;
}

.log-line {
    display: flex;
    gap: 0.75rem;
    padding: 0.1rem 0;
    border-bottom: 1px solid var(--pico-muted-border-color);
    word-break: break-all;
}

.log-ts {
    color: var(--pico-muted-color);
    white-space: nowrap;
    flex-shrink: 0;
}

.log-text {
    white-space: pre-wrap;
}

.log-empty {
    color: var(--pico-muted-color);
    text-align: center;
    padding: 1rem;
}

/* Metrics panel */
.metric-ok {
    color: #52b788;
    font-size: 0.85rem;
}

.metric-warning {
    background-color: rgba(233, 196, 106, 0.1);
}

.metric-critical {
    background-color: rgba(214, 40, 40, 0.1);
}

/* Timeline */
.timeline-time {
    font-family: monospace;
    color: var(--pico-muted-color);
}

.timeline-duration {
    font-family: monospace;
    font-size: 0.85rem;
}

.pipeline-small {
    margin: 0.25rem 0;
}

/* Compact tables */
article table {
    font-size: 0.85rem;
}

article table td,
article table th {
    padding: 0.3rem 0.5rem;
}

/* Responsive grid tweaks */
@media (max-width: 768px) {
    .pipeline {
        flex-direction: column;
    }
    .step {
        min-width: auto;
    }
}
