/*!
 |---------------------------------------------------------------
 | LeadHub tenant panel — theme-aware additions.
 |---------------------------------------------------------------
 |
 | The sidebar, cards, topbar and content colours are intentionally
 | NOT touched: Filament's stock theme already follows the user's
 | light/dark/system choice from the top-right theme switcher
 | (html.fi = light, html.fi.dark = dark).  This file only adds the
 | Home greeting header and the phone bottom-navigation styles, both
 | written to adapt to the active theme.
 |
 | Scoped to body.fi-panel-admin so the super-admin panel and the
 | public marketing pages are untouched.
 */

/* ---------------------------------------------------------------
 | Home greeting ("Good Morning, Rahul 👋") — rendered by the
 | PAGE_START hook in AdminPanelProvider; the default page header
 | is hidden on the dashboard only (style tag injected alongside).
 --------------------------------------------------------------- */
.lh-greeting {
    margin: 0.25rem 0 1rem;
}

.lh-greeting h1 {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
}

.lh-greeting p {
    margin-top: 0.25rem;
    font-size: 0.92rem;
    color: #64748b;
}

html.dark .lh-greeting h1 {
    color: #f1f5f9;
}

html.dark .lh-greeting p {
    color: #94a3b8;
}

/* ---------------------------------------------------------------
 | Mobile bottom navigation (<768px) — js: mobile-bottom-nav.js
 --------------------------------------------------------------- */
.lh-bottom-nav {
    display: none;
}

@media (max-width: 767px) {
    .lh-bottom-nav {
        display: flex;
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 40;
        background: #ffffff;
        border-top: 1px solid #e5e9f2;
        padding: 0.35rem 0.35rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
        justify-content: space-around;
        align-items: stretch;
    }

    html.dark .lh-bottom-nav {
        background: #1e293b;
        border-top-color: #334155;
    }

    .lh-bottom-nav a,
    .lh-bottom-nav button {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.15rem;
        font-size: 0.62rem;
        font-weight: 600;
        color: #64748b;
        text-decoration: none;
        border-radius: 10px;
        padding: 0.3rem 0.15rem;
        background: none;
        border: none;
        line-height: 1.1;
    }

    html.dark .lh-bottom-nav a,
    html.dark .lh-bottom-nav button {
        color: #94a3b8;
    }

    .lh-bottom-nav a.lh-active,
    .lh-bottom-nav button.lh-active {
        color: #4f46e5;
        background: #eef0ff;
    }

    html.dark .lh-bottom-nav a.lh-active,
    html.dark .lh-bottom-nav button.lh-active {
        color: #a5b4fc;
        background: rgba(99, 102, 241, 0.15);
    }

    .lh-bottom-nav svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    /* Give the page room to scroll clear of the fixed bar. */
    body.fi-panel-admin {
        padding-bottom: 4.25rem;
    }

    body.fi-panel-admin .fi-main,
    body.fi-panel-admin .fi-main-ctn {
        padding-bottom: 3.5rem;
    }
}
