.sidebar {
    width: 250px;
    min-height: 100vh;
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.15) !important;
}

pre.report-content {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    white-space: pre-wrap;
    font-size: 0.85rem;
}

/* ── Report popup overlay ────────────────────────────────────────── */
.report-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.report-popup {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 960px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.report-header {
    background: #1a1a1a;
    padding: 1.5rem 2rem;
    flex-shrink: 0;
}

.report-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
}

.report-footer {
    border-top: 1px solid #dee2e6;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: #f8f9fa;
}

/* ── Summary badges ──────────────────────────────────────────────── */
.report-badge {
    text-align: center;
    min-width: 70px;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
}

.report-badge-count {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.report-badge-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-top: 0.15rem;
}

.badge-fail {
    background: #dc3545;
    color: #fff;
}

.badge-error {
    background: #343a40;
    color: #fff;
}

.badge-warn {
    background: #ffc107;
    color: #000;
}

.badge-pass {
    background: #28a745;
    color: #fff;
}

/* ── Check result cards ──────────────────────────────────────────── */
.check-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: box-shadow 0.15s;
}

.check-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.check-card-fail {
    border-left: 4px solid #dc3545;
}

.check-card-warn {
    border-left: 4px solid #ffc107;
}

.check-card-pass {
    border-left: 4px solid #28a745;
}

.check-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.check-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    min-width: 48px;
    text-align: center;
}

.check-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.check-info strong {
    font-size: 0.9rem;
}

.check-info small {
    font-size: 0.75rem;
}

.check-message {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: #495057;
    padding-left: calc(48px + 0.75rem);
}

.check-details {
    margin-top: 0.5rem;
    padding-left: calc(48px + 0.75rem);
}

.check-details summary {
    cursor: pointer;
    font-size: 0.8rem;
    color: #6c757d;
    user-select: none;
}

.check-details pre {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.78rem;
    white-space: pre-wrap;
    margin-top: 0.35rem;
    max-height: 300px;
    overflow-y: auto;
}
