/* Primer Runner — minimal custom styles on top of Pico CSS */

/* Flash messages */
.flash-error {
    background-color: #fef2f2;
    border-left: 4px solid #dc2626;
    color: #991b1b;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.flash-success {
    background-color: #f0fdf4;
    border-left: 4px solid #16a34a;
    color: #166534;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.flash-info {
    background-color: #eff6ff;
    border-left: 4px solid #2563eb;
    color: #1e40af;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-queued {
    background-color: #e5e7eb;
    color: #374151;
}

.status-processing_template,
.status-submitted,
.status-waiting,
.status-building_report,
.status-sending_email {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.status-completed {
    background-color: #fef3c7;
    color: #92400e;
}

.status-sent {
    background-color: #d1fae5;
    color: #065f46;
}

.status-error {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Inline action forms in job tables */
.inline-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.btn-action {
    padding: 0.15rem 0.5rem;
    font-size: 0.8rem;
    margin: 0;
    border-width: 1px;
    cursor: pointer;
}

.actions-cell {
    white-space: nowrap;
}

/* Tighten up the nav */
nav ul li {
    font-size: 0.9rem;
}

footer {
    margin-top: 3rem;
    text-align: center;
    opacity: 0.6;
}
