/* ==========================================================================
   Wardably brand layer
   Lightweight design system on top of Bootstrap. No extra dependencies.
   ========================================================================== */

:root {
    --wb-brand: #0b5cab;
    --wb-brand-600: #0a4f95;
    --wb-brand-700: #08406f;
    --wb-brand-300: #1d7be0;
    --wb-ink: #0f1b2d;
    --wb-muted: #5b6b80;
    --wb-bg: #f4f7fb;
    --wb-surface: #ffffff;
    --wb-border: #e3e8ef;
    --wb-radius: 14px;
    --wb-shadow: 0 10px 30px rgba(15, 27, 45, .08);
    --wb-shadow-sm: 0 2px 10px rgba(15, 27, 45, .06);
    --wb-gradient: linear-gradient(135deg, #1d7be0 0%, #0b5cab 55%, #08406f 100%);
}

body {
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    color: var(--wb-ink);
    background-color: var(--wb-bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--wb-brand);
}

a:hover {
    color: var(--wb-brand-700);
}

/* ---- Navbar -------------------------------------------------------------- */
.navbar.wb-nav {
    /* backdrop-filter creates a new stacking context, which would otherwise trap the
       account dropdown menu behind later page content. Give the navbar its own
       positioned context above the page body so the dropdown renders on top. */
    position: relative;
    z-index: 1030;
    background: rgba(255, 255, 255, .85) !important;
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--wb-border);
    box-shadow: var(--wb-shadow-sm);
}

.wb-brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -.01em;
    color: var(--wb-ink) !important;
}

.wb-brand__mark {
    width: 30px;
    height: 30px;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(11, 92, 171, .35);
}

.wb-brand__name {
    line-height: 1;
}

.navbar.wb-nav .nav-link {
    color: var(--wb-muted) !important;
    font-weight: 500;
    border-radius: 8px;
    padding: .4rem .7rem;
    transition: color .15s, background-color .15s;
}

.navbar.wb-nav .nav-link:hover,
.navbar.wb-nav .nav-link.active {
    color: var(--wb-brand) !important;
    background: rgba(11, 92, 171, .07);
}

/* ---- Buttons ------------------------------------------------------------- */
.btn-primary {
    --bs-btn-bg: var(--wb-brand);
    --bs-btn-border-color: var(--wb-brand);
    --bs-btn-hover-bg: var(--wb-brand-600);
    --bs-btn-hover-border-color: var(--wb-brand-600);
    --bs-btn-active-bg: var(--wb-brand-700);
    --bs-btn-active-border-color: var(--wb-brand-700);
    box-shadow: 0 6px 16px rgba(11, 92, 171, .25);
}

.btn-outline-primary {
    --bs-btn-color: var(--wb-brand);
    --bs-btn-border-color: var(--wb-brand);
    --bs-btn-hover-bg: var(--wb-brand);
    --bs-btn-hover-border-color: var(--wb-brand);
    --bs-btn-active-bg: var(--wb-brand-700);
}

.badge.bg-primary {
    background-color: var(--wb-brand) !important;
}

.text-primary {
    color: var(--wb-brand) !important;
}

/* ---- Footer -------------------------------------------------------------- */
.wb-footer {
    background: var(--wb-surface);
    border-top: 1px solid var(--wb-border);
    color: var(--wb-muted);
    font-size: .9rem;
}

.wb-footer a {
    color: var(--wb-muted);
    text-decoration: none;
}

.wb-footer a:hover {
    color: var(--wb-brand);
}

/* ---- Auth split-screen --------------------------------------------------- */
.wb-auth {
    /* Break out of the layout's .container so the hero can span full width. */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 1.5rem 1rem 0;
    min-height: calc(100vh - 220px);
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .wb-auth {
        grid-template-columns: 1.05fr .95fr;
        max-width: 1140px;
        width: auto;
        position: static;
        margin-left: auto;
        margin-right: auto;
        left: auto;
        right: auto;
        padding: 1rem 0 0;
    }
}

.wb-auth__hero {
    display: none;
    position: relative;
    color: #fff;
    background: var(--wb-gradient);
    padding: 3rem;
    overflow: hidden;
}

@media (min-width: 992px) {
    .wb-auth__hero {
        display: flex;
        flex-direction: column;
        justify-content: center;
        border-radius: var(--wb-radius);
    }
}

.wb-auth__hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(420px 420px at 85% 15%, rgba(255, 255, 255, .18), transparent 60%),
        radial-gradient(360px 360px at 10% 90%, rgba(255, 255, 255, .12), transparent 60%);
    pointer-events: none;
}

.wb-auth__hero > * {
    position: relative;
    z-index: 1;
}

.wb-auth__hero h2 {
    font-weight: 700;
    font-size: 1.9rem;
    line-height: 1.2;
    letter-spacing: -.02em;
    margin-bottom: 1rem;
}

.wb-auth__hero p {
    color: rgba(255, 255, 255, .9);
    font-size: 1.02rem;
    max-width: 34ch;
}

.wb-auth__features {
    list-style: none;
    padding: 0;
    margin: 1.75rem 0 0;
    display: grid;
    gap: .85rem;
}

.wb-auth__features li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .98rem;
    color: rgba(255, 255, 255, .95);
}

.wb-auth__features svg {
    flex: 0 0 auto;
    margin-top: .15rem;
}

.wb-auth__panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.25rem;
}

.wb-auth__card {
    width: 100%;
    max-width: 420px;
    background: var(--wb-surface);
    border: 1px solid var(--wb-border);
    border-radius: var(--wb-radius);
    box-shadow: var(--wb-shadow);
    padding: 2rem 1.9rem;
}

.wb-auth__card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: .25rem;
}

.wb-auth__card .wb-auth__sub {
    color: var(--wb-muted);
    margin-bottom: 1.5rem;
}

.wb-auth__brand {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--wb-ink);
    margin-bottom: 1.25rem;
}

.wb-auth__brand img {
    width: 28px;
    height: 28px;
    border-radius: 7px;
}

.wb-auth .form-floating > label {
    color: var(--wb-muted);
}

.wb-auth .form-control:focus {
    border-color: var(--wb-brand-300);
    box-shadow: 0 0 0 .2rem rgba(29, 123, 224, .18);
}

/* ---- Account & settings -------------------------------------------------- */
.wb-settings {
    max-width: 960px;
    margin: 0 auto;
}

.wb-settings__head {
    margin-bottom: 1.5rem;
}

.wb-settings__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 768px) {
    .wb-settings__grid {
        grid-template-columns: 220px 1fr;
    }

    .wb-settings__nav {
        position: sticky;
        top: 1.5rem;
    }
}

.wb-settings__menu {
    gap: .15rem;
}

.wb-settings__link {
    border-radius: var(--wb-radius, .5rem);
    color: var(--wb-ink);
    font-weight: 500;
    padding: .55rem .85rem;
}

.wb-settings__link:hover {
    background: rgba(29, 123, 224, .08);
    color: var(--wb-brand);
}

.wb-settings__link.active {
    background: var(--wb-brand);
    color: #fff;
}

.wb-settings__body {
    min-width: 0;
}

.wb-settings__form {
    max-width: 32rem;
}

/* Account dropdown toggle (settings gear) in the top-right nav. */
.wb-account-toggle {
    border-radius: var(--wb-radius, .5rem);
    padding-inline: .6rem;
}

.wb-account-toggle:hover,
.wb-account-toggle:focus,
.wb-account-toggle[aria-expanded="true"] {
    background: rgba(29, 123, 224, .08);
    color: var(--wb-brand) !important;
}

.wb-account-toggle::after {
    margin-left: .15rem;
}

