/*
 * AppKit redesign, part 1 of 2: the colour tokens and the bottom navigation, for EVERY AppKit page (layouts/user.blade.php links this file
 * after dashboard.css). The opt-in look (band, card, sheet, tiles) is rm-v2.css and only applies under html.rm-v2.
 *
 * Tokens: dashboard-boot.js sets --rm-band-a/-b, --rm-card-a/-b/-c, --rm-accent, --rm-accent-dark, --rm-soft and --rm-soft-dark from one table row per
 * theme colour (AKD.ACCENTS[n].v2); the values below are the first-paint and no-script defaults (the Indigo row). White text reaches 4.5:1 on every band and
 * card stop of every theme colour (tests/Feature/Appkit/RedesignContrastTest.php checks the table).
 *
 * Dark mode: the band stops are mixed 16% toward the dark page colour, which only raises the contrast of the white text on them.
 * This file has no motion at all: the footer's pulse is switched off here.
 */
:root {
    --rm-band-a: #314EDB;
    --rm-band-b: #3E5AE7;
    --rm-card-a: #1A2C85;
    --rm-card-b: #152368;
    --rm-card-c: #0F1A4B;
    --rm-accent: #314EDB;
    --rm-accent-dark: #8D9FF6;
    --rm-soft: #E3E7FD;
    --rm-soft-dark: #1A203D;
    --rm-on-band: #FFFFFF;
    --rm-band-top: var(--rm-band-a);
    --rm-band-bot: var(--rm-band-b);
    --rm-hero: linear-gradient(160deg, var(--rm-band-a) 0%, var(--rm-band-b) 100%);
    --rm-nav-bg: #FFFFFF;
    --rm-nav-line: #E6E7EE;
    --rm-nav-muted: #585D6C;
    --rm-nav-active: var(--rm-accent);
}
.theme-dark {
    --rm-band-top: color-mix(in srgb, var(--rm-band-a) 84%, #0B0D14);
    --rm-band-bot: color-mix(in srgb, var(--rm-band-b) 84%, #0B0D14);
    --rm-hero: linear-gradient(160deg, color-mix(in srgb, var(--rm-band-a) 84%, #0B0D14) 0%, color-mix(in srgb, var(--rm-band-b) 84%, #0B0D14) 100%);
    --rm-nav-bg: #11141D;
    --rm-nav-line: #262A37;
    --rm-nav-muted: #A6ABBC;
    --rm-nav-active: var(--rm-accent-dark);
}

/* ---------- The bar: solid, one line on top, the page colour of the mockup ---------- */
html #footer-bar.footer-bar-6 {
    background-color: var(--rm-nav-bg) !important;
    border-top: 1px solid var(--rm-nav-line) !important;
    box-shadow: 0 -4px 18px rgba(20, 20, 40, 0.05);
}
html .theme-dark #footer-bar.footer-bar-6 { box-shadow: none; }

/* ---------- Items: 22px icon, 11px label, muted; the current page in the accent colour and heavier ---------- */
html #footer-bar.footer-bar-6 a { color: var(--rm-nav-muted); padding-top: 10px; }
html #footer-bar.footer-bar-6 a i { color: var(--rm-nav-muted); opacity: 1; font-size: 21px; transform: translateY(-1px); }
html #footer-bar.footer-bar-6 a span { color: var(--rm-nav-muted); opacity: 1; font-size: 11px !important; font-weight: 600; margin-top: -5px; }
html #footer-bar.footer-bar-6 a.active-nav i,
html #footer-bar.footer-bar-6 a.active-nav span { color: var(--rm-nav-active); }
html #footer-bar.footer-bar-6 a.active-nav span { font-weight: 800; }
/* the thin bar under the current page keeps its place (a mark that is not only colour) and takes the accent colour */
html #footer-bar.footer-bar-6 a.active-nav em { background-image: none !important; background-color: var(--rm-nav-active) !important; }

/* ---------- The raised round Home button: 56px, the band gradient, a ring in the bar colour, no pulse ---------- */
html #footer-bar.footer-bar-6 a.circle-nav strong {
    top: -30px;
    box-sizing: border-box;
    width: 56px;
    height: 56px;
    border: 4px solid var(--rm-nav-bg);
    border-radius: 50%;
    background-image: var(--rm-hero) !important;
    box-shadow: 0 10px 22px rgba(17, 10, 50, 0.30);
    animation: none !important;
}
html #footer-bar.footer-bar-6 a.circle-nav u { display: none; }
html #footer-bar.footer-bar-6 a.circle-nav i { color: var(--rm-on-band) !important; font-size: 22px !important; transform: translateY(-26px); }
html #footer-bar.footer-bar-6 a.circle-nav span { margin-top: -7px !important; }

/* ---------- Keyboard focus: a ring that reads on the bar in both modes ---------- */
html #footer-bar.footer-bar-6 a:focus-visible { outline: 2px solid var(--rm-nav-active); outline-offset: -3px; border-radius: 14px; }
