/* ==========================================================================
   A11y Auditor – Accessible Stylesheet
   ========================================================================== */

/* --- Base --- */
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #212529;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* --- Focus styles (strong, visible, accessible) --- */
:focus {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
}

/* --- Skip link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 1100;
    padding: 0.75rem 1.5rem;
    background-color: #0d6efd;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
    color: #fff;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* --- Main content area --- */
main {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* --- Sidebar --- */
.sidebar {
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    min-height: calc(100vh - 56px);
}

.sidebar .nav-link {
    color: #212529;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    margin-bottom: 2px;
}

.sidebar .nav-link:hover {
    background-color: #e9ecef;
}

.sidebar .nav-link.active {
    background-color: #0d6efd;
    color: #fff;
    font-weight: 600;
}

.sidebar .nav-link.disabled {
    color: #adb5bd;
}

.sidebar-heading {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

/* --- Page header (title + action row) --- */
.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    margin-bottom: 0;
}

/* --- Cards --- */
.card {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
}

/* --- Tables --- */
.table {
    background-color: #fff;
}

.table th {
    font-weight: 600;
    white-space: nowrap;
}

/* --- Form labels --- */
.form-label {
    font-weight: 500;
}

/* --- Alerts --- */
.alert h2 {
    margin-bottom: 0.25rem;
}

.alert ul {
    padding-left: 1.25rem;
}

/* --- Badge contrast --- */
.badge.bg-success {
    background-color: #057a55 !important;
}

/* --- Footer --- */
.footer {
    font-size: 0.875rem;
}

/* --- Stat card --- */
.stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

/* --- Responsive --- */
@media (max-width: 767.98px) {
    .sidebar {
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }
}
