/* Portal navigation styles. Company colours are supplied by variables in base.html. */
.navbar-custom {
    background: linear-gradient(135deg, var(--portal-primary) 0%, var(--portal-secondary) 100%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
    color: #f1f5f9;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus {
    color: var(--portal-accent);
}

.navbar-custom .dropdown-menu {
    border: 0;
    border-radius: 0.75rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

.navbar-custom .dropdown-item {
    border-radius: 0.4rem;
}

.navbar-custom .dropdown-item:hover,
.navbar-custom .dropdown-item:focus {
    background: color-mix(in srgb, var(--portal-accent) 16%, white);
}

.testing-toolbar {
    background: #f8fafc;
    border-bottom: 1px solid #cbd5e1;
    color: #1e293b;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.08);
    width: 100%;
}

.testing-toolbar-toggle[aria-expanded="true"] {
    box-shadow: 0 0 0 0.2rem rgba(250, 204, 21, 0.25);
}

.testing-toolbar-toggle,
.testing-return-form .btn {
    white-space: nowrap;
}

.testing-toolbar .form-select {
    background-color: #fff;
}

.testing-return-form {
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .navbar-custom .navbar-collapse {
        padding-top: 1rem;
    }

    .navbar-custom .nav-user-context {
        align-items: stretch !important;
        flex-direction: column;
        gap: 0.5rem;
        padding-top: 0.75rem;
    }

    .navbar-custom .nav-user-context > *,
    .navbar-custom .nav-user-context .btn {
        width: 100%;
    }

}
