/* General Body & Theme */
body {
    background-color: #111827; /* A darker background */
    color: #f8fafc;
    padding-top: 70px; /* For fixed navbar */
}

/* Cards */
.card {
    background-color: #1f2937;
    border: 1px solid #374151;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3em 0.6em;
    font-size: 0.85rem;
    border-radius: 0.375rem;
}

.status-running { background-color: #0d6efd; color: white; }
.status-completed { background-color: #198754; color: white; }
.status-pending { background-color: #ffc107; color: black; }
.status-failed { background-color: #dc3545; color: white; }

/* Pulsing 'Live' Indicator */
.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(25, 135, 84, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
    }
}

/* Stat Cards on Dashboard */
.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    font-size: 1.5rem;
}

/* Accordion Customization */
.accordion-button {
    background-color: #374151;
    color: #f8fafc;
}
.accordion-button:not(.collapsed) {
    background-color: #4b5563;
}

/* Insight Page Specifics */
.insight-stat {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid #374151;
    border-radius: 0.5rem;
    padding: 1rem;
    height: 100%;
}

.chart-card-body {
    background-color: #111827; /* Match body background */
    padding: 0.5rem;
}

.chart-card-body .plotly {
    width: 100% !important;
}