/* === NEW: Styles to Fix Redesigned Dashboard (V2) Flaws === */

/* Styles for the pipeline flow diagram inside a card */
.pipeline-flow-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-basis: 30%; /* Give each node a base width */
}

.pipeline-flow-node .node-label {
    font-weight: 500;
    font-size: 0.8rem;
}

.pipeline-flow-node .node-detail {
    font-size: 0.75rem;
    color: #6c757d; /* text-muted */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px; /* Prevent long names from breaking layout */
    display: block; /* Ensure it behaves like a block for truncation */
}

.pipeline-flow-arrow {
    font-size: 1.5rem; /* Make the arrow icon larger */
    color: #adb5bd; /* secondary color */
}

/* Styles for the log preview container */
#log-preview-container .log-entry {
    padding: 3px 0;
    border-bottom: 1px solid #e9ecef; /* A very light separator */
    font-size: 0.8rem;
    line-height: 1.5;
}

#log-preview-container .log-entry:last-child {
    border-bottom: none;
}

/* === NEW: Styles for the Dashboard Cards === */
.dashboard-card {
    height: 100%;
}

.dashboard-card .card-body {
    display: flex;
    flex-direction: column;
}

.dashboard-card .card-title {
    font-size: 0.9rem;
    font-weight: 600;
}

.dashboard-card .metric-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.dashboard-card .metric-label {
    font-size: 0.8rem;
    color: #6c757d;
}

.dashboard-card .status-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1; /* Allow list to take up remaining space */
}

.dashboard-card .status-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    border-bottom: 1px solid #f1f3f5;
}

.dashboard-card .status-list-item:last-child {
    border-bottom: none;
}

.dashboard-card .status-list-item .status-name {
    font-size: 0.85rem;
}

.dashboard-card .status-list-item .status-badge {
    font-size: 0.75rem;
}