/* Bambu Run Dashboard Styles */

.chart-container {
    position: relative;
    height: 300px;
}

.no-data-message {
    font-size: 0.9rem;
    font-style: italic;
}

/* Card styling */
.infra-card-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #000;
}

.infra-card-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #0bb5d6 100%);
    color: #000;
}

.infra-card-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #fff;
}

.infra-card-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    color: #fff;
}

/* Dark mode adjustments */
[data-coreui-theme="dark"] .infra-card-warning {
    background: linear-gradient(135deg, #ffb300 0%, #ff8f00 100%);
    color: #fff;
}

[data-coreui-theme="dark"] .infra-card-info {
    background: linear-gradient(135deg, #0bb5d6 0%, #099cbd 100%);
    color: #fff;
}

/* Stat display styling */
.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.infra-card-warning .card-text,
.infra-card-info .card-text {
    opacity: 0.75;
}

[data-coreui-theme="dark"] .infra-card-warning .card-text,
[data-coreui-theme="dark"] .infra-card-info .card-text {
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

/* AMS unit type colors — CSS variables so RAE/standalone can override per theme */
:root {
    --ams-badge-ams: #6c757d;
    --ams-badge-ams-2-pro: #0d6efd;
    --ams-badge-ams-ht: #fd7e14;
    --ams-group-border-color: rgba(0, 0, 0, 0.15);
}

[data-coreui-theme="dark"] {
    --ams-group-border-color: rgba(255, 255, 255, 0.2);
}

.ams-badge-ams {
    background-color: var(--ams-badge-ams);
    color: #fff;
}

.ams-badge-ams-2-pro {
    background-color: var(--ams-badge-ams-2-pro);
    color: #fff;
}

.ams-badge-ams-ht {
    background-color: var(--ams-badge-ams-ht);
    color: #fff;
}

.ams-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ams-filter-pill {
    border-radius: 50rem;
    padding: 0.25rem 0.9rem;
    font-size: 0.85rem;
    border: 1px solid var(--ams-group-border-color);
    background-color: transparent;
    opacity: 0.6;
}

.ams-filter-pill.active {
    opacity: 1;
    font-weight: 600;
    border-color: currentColor;
}

/* Grouped AMS unit panels — Bootstrap row/col handles sizing;
   multi-slot units (AMS/AMS 2 Pro) are col-12, single-slot (AMS HT) are col-lg-3. */
.ams-group {
    border-radius: 0.5rem;
    padding: 0.75rem;
    border: 1px solid var(--ams-group-border-color);
}

.ams-badge-bg-ams {
    background-color: color-mix(in srgb, var(--ams-badge-ams) 8%, transparent);
    border-left: 3px solid var(--ams-badge-ams);
}

.ams-badge-bg-ams-2-pro {
    background-color: color-mix(in srgb, var(--ams-badge-ams-2-pro) 8%, transparent);
    border-left: 3px solid var(--ams-badge-ams-2-pro);
}

.ams-badge-bg-ams-ht {
    background-color: color-mix(in srgb, var(--ams-badge-ams-ht) 8%, transparent);
    border-left: 3px solid var(--ams-badge-ams-ht);
}

.ams-badge-bg- {
    border-left: 3px solid var(--ams-group-border-color);
}
