 .sidebar { width: 260px; }
    @media (min-width: 992px) {
        .sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; flex: none; }
    }
    .sidebar .nav-link { color: #5b6673; border-radius: .5rem; font-size: .92rem; }
    .sidebar .nav-link:hover { background: #f3f5f7; color: #1c2530; }
    .sidebar .nav-link.active { background: #1f6aa5; color: #fff; }
    .sidebar .sub .nav-link { padding-left: 2.6rem; font-size: .85rem; }
    .sidebar [aria-expanded="true"] .chev { transform: rotate(180deg); }
    .chev { transition: transform .2s; }
    .min-w-0 { min-width: 0; }
    .sidebar-section-label {
        font-size: .72rem;
        text-transform: uppercase;
        letter-spacing: .05em;
        color: #8a95a1;
        padding: 1rem .75rem .35rem;
        font-weight: 600;
    }
    .sidebar-nav-scroll { scrollbar-width: thin; }


    /* Top navbar: soft shadow + Kenyan flag stripe along the bottom edge */
    .topbar {
        padding-bottom: 18px;                       /* room for the stripe */
        box-shadow: 0 4px 14px rgba(20, 40, 60, .25);
    }
    .topbar::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 8px;
        /* black / white / red / white / green (6:1:6:1:6) */
        background: linear-gradient(
            to bottom,
            #000000 0 30%,
            #ffffff 30% 35%,
            #bb0000 35% 65%,
            #ffffff 65% 70%,
            #006600 70% 100%
        );
    }

    /* ─── Settings tabs (segmented control) ──────────────────────────── */

.settings-tabs-wrap {
    margin-bottom: 1rem;
}

.settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    margin: 0;
    list-style: none;
    background: #eef1f4;
    border: 1px solid #e1e6ea;
    border-radius: 10px;
}

.settings-tabs .nav-item {
    flex: 0 0 auto;
    min-width: 0;
}

.settings-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem .9rem;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
    color: #5b6673;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px;
    transition:
        background-color .15s ease,
        color           .15s ease,
        border-color    .15s ease,
        box-shadow      .15s ease;
}

.settings-tabs .nav-link i {
    font-size: 1rem;
    line-height: 1;
    opacity: .8;
    transition: opacity .15s ease;
}

/* Hover — subtle lift, no colour yet */
.settings-tabs .nav-link:hover {
    background: rgba(255, 255, 255, .7);
    color: #1c2530;
}

.settings-tabs .nav-link:hover i {
    opacity: 1;
}

/* Active — elevated white chip with brand-coloured text */
.settings-tabs .nav-link.active {
    background: #fff;
    color: var(--bs-primary);
    border-color: #dbe4ed;
    box-shadow:
        0 1px 2px rgba(15, 35, 60, .06),
        0 2px 6px rgba(15, 35, 60, .04);
}

.settings-tabs .nav-link.active i {
    opacity: 1;
}

/* Focus ring for keyboard users */
.settings-tabs .nav-link:focus-visible {
    outline: 2px solid rgba(31, 106, 165, .35);
    outline-offset: 2px;
}

/* Small screens — horizontal scroll instead of wrapping to 3 rows */
@media (max-width: 575.98px) {
    .settings-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
        padding: 3px;
    }

    .settings-tabs::-webkit-scrollbar {
        height: 4px;
    }
    .settings-tabs::-webkit-scrollbar-thumb {
        background: #cfd6dd;
        border-radius: 2px;
    }

    .settings-tabs .nav-link {
        padding: .45rem .7rem;
        font-size: .8rem;
    }

    .settings-tabs .nav-link i {
        font-size: .9rem;
    }
}

/* Dark-mode friendly (Bootstrap 5.3 data-bs-theme) */
[data-bs-theme="dark"] .settings-tabs {
    background: #1a1d21;
    border-color: #2a2e33;
}
[data-bs-theme="dark"] .settings-tabs .nav-link {
    color: #9aa4af;
}
[data-bs-theme="dark"] .settings-tabs .nav-link:hover {
    background: rgba(255, 255, 255, .04);
    color: #e6e9ee;
}
[data-bs-theme="dark"] .settings-tabs .nav-link.active {
    background: #24282d;
    color: #6cb3e8;
    border-color: #303640;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}

.form-control:focus, .form-select:focus {
    box-shadow: none !important;
    border-radius: none;
}
.input-group-text {
    border-radius: none !important;
}



    

