/* ============================================================
   Aidi brand overrides for base_site / Hyper theme
   Primary colour: #2B61E9
   ============================================================ */

/* --- CSS variable overrides (light mode) ------------------- */


/* --- CSS variable overrides (dark mode) -------------------- */
[data-bs-theme="dark"] {
    --ct-primary-text-emphasis:  #2B61E9;
    --ct-primary-bg-subtle:      rgba(139, 92, 246, 0.15);
    --ct-primary-border-subtle: #2B61E9;
}

/* --- Main site topbar ------------------------------------- */
.navbar-custom {
    background: #2B61E9 !important;
}

/* Make user pill and any remaining topbar elements transparent */
/* Also boost text contrast — 70% white is too faint on the gradient */
html[data-topbar-color=dark] {
    --ct-topbar-user-bg:          transparent;
    --ct-topbar-user-border:      rgba(255, 255, 255, 0.25);
    --ct-topbar-search-bg:        rgba(255, 255, 255, 0.15);
    --ct-topbar-item-color:       #ffffff;
    --ct-topbar-item-hover-color: #ffffff;
}

/* Ensure all topbar text, icons and dropdowns are white */
.navbar-custom .topbar-menu .nav-link,
.navbar-custom .topbar-menu .nav-link i,
.navbar-custom .button-toggle-menu,
.navbar-custom .nav-user,
.navbar-custom .nav-user * {
    color: #ffffff !important;
}

/* Dropdown menus spawned from topbar should revert to normal dark text */
.navbar-custom .dropdown-menu {
    color: initial;
}
.navbar-custom .dropdown-menu .dropdown-item {
    color: var(--ct-dropdown-color, #6c757d) !important;
}

/* --- Login / registration / error card header ------------- */
/* Targets the logo banner on login, password-reset, 403, 404 */
.card-header.bg-primary {
    background: #2B61E9 !important;
}

/* Logo sizing in card headers */
.card-header img {
    max-height: 120px;
    width: auto;
}
