/* 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;
}

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;
}
