/* BookiTier theme style (Theme Settings → Theme Colors → Theme Style = "BookiTier")
 *
 * The ombre layout (left-menu-ombre.css: floating gradient rail, full-page backdrop,
 * glass panels) in BookiTier's own purple/pink — the palette of /signup and the owner
 * setup wizard (signup-wizard.css). sas_base.html.twig renders it as
 * body.menu-style-ombre.theme-bookitier, so every ombre rule applies and this file
 * only swaps colors. Must load AFTER left-menu-ombre.css (app.js).
 *
 * The org's own Left Menu gradient colors are ignored in this style; pick Ombre to
 * use them.
 */

body.theme-bookitier {
    /* Rail: muted violet into deep purple (violet isn't a highlight — pink is) */
    --bit-menu-grad-start: #3a2a8a;
    --bit-menu-grad-end: #120040;
    --bookitier-pink: #ff0efd;
    --bookitier-pink-deep: #c20bd9;

    /* bookitier.com palette: a saturated violet-purple that reads as purple (not
       black), with a violet glow up top, deepening to near-black only at the
       very foot. Pink is the only highlight — one faint glow, bottom-left. */
    background:
        radial-gradient(1100px 620px at 10% -10%, #5a30e873, transparent 60%),
        radial-gradient(900px 560px at 100% 30%, #50396d66, transparent 60%),
        radial-gradient(900px 560px at 6% 108%, #ff0efd24, transparent 60%),
        linear-gradient(185deg, #2a1a7a 0%, #22006a 30%, #1a0055 60%, #10003a 85%, #04000f 100%);
    background-attachment: fixed;
}

body.theme-bookitier::before { background: radial-gradient(circle, #ff0efd26, transparent 70%); }
body.theme-bookitier::after  { background: radial-gradient(circle, #5a30e855, transparent 70%); }

/* The floating rail needs an edge now that it sits on a dark page */
body.theme-bookitier #leftMenu {
    border-color: rgba(160, 145, 199, .22) !important;
}

/* Rail shadow: black, not navy */
body.theme-bookitier #leftMenu {
    box-shadow: 0 16px 40px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .35);
}

/* Pink accents in the menu: hover tint, the active item's icon, open groups */
body.theme-bookitier #leftMenu .nav-link:hover {
    background: rgba(255, 14, 253, .16) !important;
}

/* Rolling over the CURRENT page's item: the hover tint above replaces its white
   pill, so the pill's dark text would sit on the dark rail. White text instead,
   like every other hovered item. */
body.theme-bookitier #leftMenu .nav-link.active:hover {
    color: #ffffff !important;
    box-shadow: none;
}

body.theme-bookitier #leftMenu .nav-link.active:hover i {
    color: var(--bookitier-pink) !important;
}

body.theme-bookitier #leftMenu .nav-link.active i {
    color: var(--bookitier-pink-deep) !important;
}

body.theme-bookitier #leftMenu .toggle-arrow.toggler-active {
    background: rgba(255, 14, 253, .14) !important;
}

/* Header icon chip */
body.theme-bookitier #topHeader .header-glyph {
    background: linear-gradient(135deg, var(--bookitier-pink-deep), var(--bookitier-pink)) !important;
    color: #fff !important;
}

body.theme-bookitier #topHeader .header-glyph i { color: #fff !important; }

/* ============================================================
   LEGIBILITY ON THE DARK BACKDROP
   Every content panel in the app is "glass": a ~55% white film that assumes a
   LIGHT backdrop behind it (classic / ombre). On BookiTier's deep purple the
   same film turns mid-purple, and the app's text — all of it coloured for a
   light surface (dark ink, slate greys, pale "muted" labels) — goes dim or
   disappears. Fix it once, at the panel: on this theme the glass is almost
   opaque, so every page keeps a light reading surface whatever sits on it.
   Do NOT lighten individual text colours per template to compensate.
   ============================================================ */
body.theme-bookitier .frosted-listing .modern-card,
body.theme-bookitier .frosted-listing .filter-section-modern,
body.theme-bookitier .dashboard-equal-cards .card.bit-card,
body.theme-bookitier #topHeader {
    background: rgba(255, 255, 255, .92) !important;
}

/* Zebra + hover were white films over the glass; on a near-opaque panel they
   need a tint instead or the stripes vanish. */
body.theme-bookitier .frosted-listing .table-modern.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(90, 48, 232, .05) !important;
}

body.theme-bookitier .frosted-listing .table-modern tbody tr:hover,
body.theme-bookitier .frosted-listing .table-modern.table-striped tbody tr:hover {
    background: rgba(90, 48, 232, .10) !important;
    box-shadow: inset 0 0 0 1px rgba(90, 48, 232, .18) !important;
}

body.theme-bookitier .frosted-listing .table-modern tbody td {
    border-bottom-color: rgba(18, 35, 59, .10) !important;
}

/* ============================================================
   BOOKITIER BLUE (Theme Style = "BookiTier Blue")
   The same dark look with every purple moved to navy and the pink highlight
   to cyan (mockup option C, docs/mockups/theme-blue-options.html). sas_base.html.twig renders it as
   body.menu-style-ombre.theme-bookitier.theme-bookitier-blue, so everything above
   still applies and this block only swaps the colors. Keep the color blocks LAST in this file.
   ============================================================ */
body.theme-bookitier.theme-bookitier-blue {
    --bit-menu-grad-start: #173f7a;
    --bit-menu-grad-end: #020f2e;
    /* Variable names kept so the rules above pick the cyan highlight up */
    --bookitier-pink: #22d3ee;
    --bookitier-pink-deep: #0891b2;

    background:
        radial-gradient(1100px 620px at 10% -10%, #2a7ad673, transparent 60%),
        radial-gradient(900px 560px at 100% 30%, #39506d66, transparent 60%),
        radial-gradient(900px 560px at 6% 108%, #22d3ee24, transparent 60%),
        linear-gradient(185deg, #123263 0%, #0a2450 30%, #071a3d 60%, #040f28 85%, #01040c 100%);
    background-attachment: fixed;
}

body.theme-bookitier.theme-bookitier-blue::before { background: radial-gradient(circle, #22d3ee26, transparent 70%); }
body.theme-bookitier.theme-bookitier-blue::after  { background: radial-gradient(circle, #2a7ad655, transparent 70%); }

body.theme-bookitier.theme-bookitier-blue #leftMenu {
    border-color: rgba(145, 170, 199, .22) !important;
}

body.theme-bookitier.theme-bookitier-blue #leftMenu .nav-link:hover {
    background: rgba(34, 211, 238, .16) !important;
}

body.theme-bookitier.theme-bookitier-blue #leftMenu .toggle-arrow.toggler-active {
    background: rgba(34, 211, 238, .14) !important;
}

body.theme-bookitier.theme-bookitier-blue .frosted-listing .table-modern.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(42, 122, 214, .05) !important;
}

body.theme-bookitier.theme-bookitier-blue .frosted-listing .table-modern tbody tr:hover,
body.theme-bookitier.theme-bookitier-blue .frosted-listing .table-modern.table-striped tbody tr:hover {
    background: rgba(42, 122, 214, .10) !important;
    box-shadow: inset 0 0 0 1px rgba(42, 122, 214, .18) !important;
}

/* ============================================================
   BOOKITIER COBALT (Theme Style = "BookiTier Cobalt")
   Mockup option B "Cobalt & Ice" (docs/mockups/theme-blue-options.html): brighter
   cobalt menu, ice-blue highlight. Rendered as body.theme-bookitier.theme-bookitier-cobalt,
   so like BookiTier Blue it only swaps colors on top of the BookiTier rules.
   ============================================================ */
body.theme-bookitier.theme-bookitier-cobalt {
    --bit-menu-grad-start: #2552d0;
    --bit-menu-grad-end: #06124f;
    /* Variable names kept so the rules above pick the ice highlight up */
    --bookitier-pink: #7fd0ff;
    --bookitier-pink-deep: #2f8fe6;

    background:
        radial-gradient(1100px 620px at 10% -10%, #4d86ff73, transparent 60%),
        radial-gradient(900px 560px at 100% 30%, #39506d66, transparent 60%),
        radial-gradient(900px 560px at 6% 108%, #7fd0ff24, transparent 60%),
        linear-gradient(185deg, #1c44a8 0%, #0b2a86 30%, #081f66 60%, #051344 85%, #01040f 100%);
    background-attachment: fixed;
}

body.theme-bookitier.theme-bookitier-cobalt::before { background: radial-gradient(circle, #7fd0ff26, transparent 70%); }
body.theme-bookitier.theme-bookitier-cobalt::after  { background: radial-gradient(circle, #4d86ff55, transparent 70%); }

body.theme-bookitier.theme-bookitier-cobalt #leftMenu {
    border-color: rgba(160, 190, 235, .22) !important;
}

body.theme-bookitier.theme-bookitier-cobalt #leftMenu .nav-link:hover {
    background: rgba(127, 208, 255, .16) !important;
}

body.theme-bookitier.theme-bookitier-cobalt #leftMenu .toggle-arrow.toggler-active {
    background: rgba(127, 208, 255, .14) !important;
}

body.theme-bookitier.theme-bookitier-cobalt .frosted-listing .table-modern.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(77, 134, 255, .05) !important;
}

body.theme-bookitier.theme-bookitier-cobalt .frosted-listing .table-modern tbody tr:hover,
body.theme-bookitier.theme-bookitier-cobalt .frosted-listing .table-modern.table-striped tbody tr:hover {
    background: rgba(77, 134, 255, .10) !important;
    box-shadow: inset 0 0 0 1px rgba(77, 134, 255, .18) !important;
}
