/*
 * SriJova app shell. Defines SriJova design tokens, light/dark theme via [data-theme-mode],
 * the .app-sidebar / .app-header / .main-content frame, and class shims for the
 * markup the focused prompts emit (.custom-card, .avatar, .bg-{tone}-transparent,
 * .side-menu__item, .slide__category, .crm-highlight-card, .btn-wave, etc.).
 *
 * Why a shim layer: the full SriJova Bootstrap admin template (Spruko derivative)
 * is not in this repo. We define just enough of its class surface so the focused
 * prompts' markup renders acceptably; visuals will approximate the template,
 * but structure / a11y / role gating are correct.
 */

/* ===== Design tokens (light defaults) ===== */
:root {
    /* InviteToJoin Theme v1 — navy nav, action blue, green success, purple accent.
       Aligned to srijova-design-system.css's --srijova-brand (#1E6FE0 action blue). */
    --primary-rgb: 30, 111, 224;    /* Action Blue #1E6FE0 */
    --secondary-rgb: 20, 40, 74;    /* Navy #14284A */
    --success-rgb: 67, 168, 59;     /* #43A83B */
    --warning-rgb: 245, 158, 11;    /* #F59E0B */
    --danger-rgb: 229, 57, 53;      /* #E53935 */
    --info-rgb: 0, 180, 219;        /* #00B4DB */
    --accent-rgb: 124, 58, 237;     /* Accent Purple #7C3AED */
    --navy: #14284A;

    --primary-color: rgb(var(--primary-rgb));
    --secondary-color: rgb(var(--secondary-rgb));
    --default-text-color: #4b5366;
    --default-text-color-rgb: 75, 83, 102;
    --default-background: #f6f8fc;
    --default-body-bg-rgb: 246, 248, 252;
    --custom-white: #ffffff;
    --custom-black: #0f172a;
    --default-border: #e6eaf2;
    --header-bg: #ffffff;
    --header-border-color: var(--default-border);
    --header-prime-color: #4b5366;
    /* Navy sidebar (sample look) */
    --menu-bg: #14284A;
    --menu-prime-color: #b8c4da;
    --menu-border-color: rgba(255, 255, 255, 0.08);
    --form-control-bg: #ffffff;
    --form-control-border: #e2e8f0;
    --muted: #475569;

    --default-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --display-font-family: var(--default-font-family);
}

/* ===== Dark mode =====
   Surfaces are TIERED so cards visually stand off the body:
       body bg     #14161f  ←  darkest
       sidebar     #1a1d29
       header      #1a1d29
       card        #252836  ←  lighter than body so it pops
       hover       #2d3142  ←  lighter still
   The srijova-design-system tokens are overridden here too so components from that layer
   (.card, .srijova-surface, .srijova-tile, .srijova-chip, .srijova-event-tile, .srijova-metric) flip cleanly. */
/* ===== Cream mode =====
   Warm cream page bg, white sidebar + cards, beige borders. Brand stays indigo.
   Mirrors the [data-theme-mode="cream"] block in srijova-design-system.css. */
/* InviteToJoin v1: "cream" repointed to the theme's cool palette (no more warm cream)
   so a persisted cream preference still renders the correct navy/blue theme. */
[data-theme-mode="cream"] {
    --default-text-color: #475569;
    --default-text-color-rgb: 71, 85, 105;
    --default-background: #f6f8fc;
    --default-body-bg-rgb: 246, 248, 252;
    --custom-white: #ffffff;
    --custom-black: #0f172a;
    --default-border: #e6eaf2;
    --header-bg: #ffffff;
    --header-border-color: var(--default-border);
    --header-prime-color: #475569;
    --menu-bg: #14284A;
    --menu-prime-color: #b8c4da;
    --menu-border-color: rgba(255, 255, 255, 0.08);
    --form-control-bg: #ffffff;
    --form-control-border: #e2e8f0;
    --muted: #64748b;
}

[data-theme-mode="dark"] {
    --default-text-color: #e2e6ee;
    --default-text-color-rgb: 226, 230, 238;
    --default-background: #14161f;
    --default-body-bg-rgb: 20, 22, 31;
    --custom-white: #252836;             /* card bg — distinctly lighter than body */
    --custom-black: #f1f5f9;             /* high-contrast headings */
    --default-border: rgba(255, 255, 255, 0.08);
    --header-bg: #1a1d29;
    --header-border-color: rgba(255, 255, 255, 0.06);
    --header-prime-color: #e2e6ee;
    --menu-bg: #1a1d29;
    --menu-prime-color: #cbd0dd;
    --menu-border-color: rgba(255, 255, 255, 0.06);
    --form-control-bg: #252836;
    --form-control-border: rgba(255, 255, 255, 0.12);
    --muted: #a3aac0;

    /* srijova-design-system token overrides for dark mode — keep tiles/chips/surfaces readable. */
    --srijova-bg: #14161f;
    --srijova-surface: #252836;
    --srijova-surface-hover: #2d3142;
    --srijova-border: rgba(255, 255, 255, 0.08);
    --srijova-border-strong: rgba(255, 255, 255, 0.18);
    --srijova-text: #e2e6ee;
    --srijova-text-muted: #a3aac0;
    --srijova-text-subtle: #7d8398;
    --srijova-brand-50: rgba(99, 102, 241, 0.18);
    --srijova-success-bg: rgba(16, 185, 129, 0.18);
    --srijova-danger-bg: rgba(239, 68, 68, 0.18);
    --srijova-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.25);
    --srijova-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4),  0 2px 4px -2px rgba(0, 0, 0, 0.25);
    --srijova-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.45), 0 4px 6px -4px rgba(0, 0, 0, 0.25);
}

[data-menu-styles="dark"] {
    --menu-bg: #14284A;               /* InviteToJoin navy sidebar */
    --menu-prime-color: #b8c4da;
    --menu-border-color: rgba(255, 255, 255, 0.08);
}

[data-header-styles="dark"] {
    --header-bg: #2a2d3a;
    --header-prime-color: #cbd0dd;
}

/* ===== Base ===== */
html, body {
    font-family: var(--default-font-family);
    background: var(--default-background);
    color: var(--default-text-color);
}
h1, h2, h3, h4, h5, h6 { font-family: var(--display-font-family); color: var(--custom-black); }
a { color: var(--primary-color); }

/* ===== Layout frame ===== */
.page { display: flex; flex-direction: column; min-height: 100vh; }
.main-content { flex: 1; padding-top: 64px; }   /* clear the sticky header */
.app-content { padding-left: 248px; }            /* clear the sticky sidebar at md+ */
.container-fluid { padding-left: 1.5rem; padding-right: 1.5rem; }

/* ===== Header ===== */
.app-header {
    position: fixed; top: 0; left: 248px; right: 0;
    height: 64px;
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border-color);
    z-index: 1030;
    display: flex; align-items: center;
}
.main-header-container {
    display: flex; align-items: center; gap: 0.75rem;
    width: 100%; padding: 0 1rem;
}
.header-element { display: flex; align-items: center; }
.header-link {
    color: var(--header-prime-color);
    text-decoration: none;
    padding: 0.5rem;
    display: inline-flex; align-items: center; gap: 0.5rem;
    min-height: 40px; min-width: 40px; justify-content: center;
    border-radius: 6px;
}
.header-link:hover { background: rgba(var(--default-text-color-rgb), 0.06); color: var(--primary-color); }
.flex-fill { flex: 1; }

/* ===== Sidebar ===== */
.app-sidebar {
    position: fixed; top: 64px; left: 0; bottom: 0;
    width: 248px;
    background: var(--menu-bg);
    border-right: 1px solid var(--menu-border-color);
    overflow-y: auto;
    z-index: 1020;
    transition: transform 200ms ease;
}
.main-sidebar-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--menu-border-color);
}
.main-sidebar-header .header-logo {
    display: flex; align-items: center; gap: 0.5rem;
    font-family: var(--display-font-family);
    font-weight: 700; font-size: 1.05rem;
    color: var(--custom-black);
    text-decoration: none;
}
.main-sidebar { padding: 0.75rem 0.5rem 2rem; }

.main-menu-container, .main-menu {
    list-style: none;
    margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 0.15rem;
}
.slide__category {
    padding: 1.1rem 0.75rem 0.35rem;
    color: var(--muted);
    font-size: 0.7rem; text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}
.slide__category .category-name { display: inline; }
.slide { list-style: none; }
.side-menu__item {
    display: flex; align-items: center; gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    color: var(--menu-prime-color);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.92rem;
    min-height: 44px;
}
.side-menu__item:hover { background: rgba(var(--primary-rgb), 0.08); color: var(--primary-color); }
.side-menu__item.active {
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-color);
    font-weight: 600;
}
.side-menu__icon { width: 18px; text-align: center; opacity: 0.85; }
.side-menu__label { flex: 1; }

/* Sidebar collapses on small screens (toggle adds .sidebar-open) */
@media (max-width: 991.98px) {
    .app-sidebar { transform: translateX(-100%); }
    html.sidebar-open .app-sidebar { transform: translateX(0); }
    .app-content { padding-left: 0; }
    .app-header { left: 0; }   /* header spans full width when sidebar is hidden */
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid var(--default-border);
    background: var(--header-bg);
    color: var(--muted);
    padding: 0.75rem 1rem;
    margin-top: auto;
    text-align: center;
}

/* ===== Cards ===== */
.custom-card {
    background: var(--custom-white);
    border: 1px solid var(--default-border);
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.custom-card .card-header {
    border-bottom: 1px solid var(--default-border);
    background: transparent;
    padding: 0.85rem 1rem;
    display: flex; align-items: center; justify-content: space-between;
}
.custom-card .card-title { font-size: 0.95rem; font-weight: 600; margin: 0; color: var(--custom-black); }
.custom-card .card-body { padding: 1rem; }
.custom-card .card-footer { border-top: 1px solid var(--default-border); background: transparent; padding: 0.65rem 1rem; }

/* The signature CRM highlight card — used by the anonymous hero */
.crm-highlight-card {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 1), rgba(var(--secondary-rgb), 0.9));
    border: 0;
    color: #fff;
}
.crm-highlight-card .text-fixed-white,
.text-fixed-white { color: #fff !important; }

/* ===== Metric card (KPI) ===== */
.metric-card { transition: transform 120ms ease, box-shadow 120ms ease; }
.metric-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.metric-card h4 { color: var(--custom-black); }

/* ===== Event card ===== */
.event-card__cover { height: 160px; object-fit: cover; width: 100%; }
/* The nav-tile flavour of EventTile is an <a>, so without an explicit color
   its children would inherit var(--primary-color) (indigo) — invisible on a
   dark card. Force the default text color and let .text-muted handle the subtitle. */
.event-tile {
    transition: transform 120ms ease, box-shadow 120ms ease;
    color: var(--default-text-color);
}
.event-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    color: var(--default-text-color);
}
.event-tile .fw-semibold { color: var(--custom-black); }
.event-tile .text-muted  { color: var(--muted) !important; }

/* ===== Avatars ===== */
.avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: 6px; font-weight: 600; font-size: 0.85rem;
}
.avatar-sm { width: 28px; height: 28px; font-size: 0.75rem; }
.avatar-md { width: 36px; height: 36px; }
.avatar-rounded { border-radius: 50%; }

/* ===== Tone helpers (shim around Bootstrap's bg-*-subtle) ===== */
.bg-primary-transparent   { background-color: rgba(var(--primary-rgb), 0.12) !important; }
.bg-secondary-transparent { background-color: rgba(var(--default-text-color-rgb), 0.1) !important; }
.bg-success-transparent   { background-color: rgba(var(--success-rgb), 0.12) !important; }
.bg-warning-transparent   { background-color: rgba(var(--warning-rgb), 0.12) !important; }
.bg-danger-transparent    { background-color: rgba(var(--danger-rgb), 0.12) !important; }
.bg-info-transparent      { background-color: rgba(var(--info-rgb), 0.12) !important; }
.text-primary   { color: rgb(var(--primary-rgb)) !important; }
.text-secondary { color: var(--muted) !important; }
.text-success   { color: rgb(var(--success-rgb)) !important; }
.text-warning   { color: rgb(var(--warning-rgb)) !important; }
.text-danger    { color: rgb(var(--danger-rgb)) !important; }
.text-info      { color: rgb(var(--info-rgb)) !important; }
.text-muted     { color: var(--muted) !important; }

/* ===== Buttons (lightweight extensions on top of Bootstrap) ===== */
.btn-wave { position: relative; overflow: hidden; }
.btn-light {
    background: rgba(var(--default-text-color-rgb), 0.05);
    color: var(--default-text-color);
    border: 0;
}
.btn-icon { padding: 0.35rem 0.55rem; line-height: 1; min-height: 36px; min-width: 36px; }
.btn-list { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

/* ===== Accessibility — focus rings (SriJova rule 1.7) ===== */
:focus-visible,
.side-menu__item:focus-visible,
.header-link:focus-visible,
.btn:focus-visible,
.card a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Typography helpers used by prompts ===== */
.fs-11 { font-size: 0.6875rem !important; }
.fs-12 { font-size: 0.75rem !important; }
.fs-13 { font-size: 0.8125rem !important; }
.fs-14 { font-size: 0.875rem !important; }
.fs-16 { font-size: 1rem !important; }
.fs-18 { font-size: 1.125rem !important; }
.fs-20 { font-size: 1.25rem !important; }
.fs-32 { font-size: 2rem !important; }
.op-7 { opacity: 0.7; }
.op-8 { opacity: 0.85; }
.fw-medium { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }

/* ===== Authentication shell (EmptyLayout) ===== */
.authentication-body { min-height: 100vh; background: var(--default-background); }
.authentication { min-height: 100vh; }
.authentication-brand {
    font-family: var(--display-font-family);
    font-weight: 700; font-size: 1.25rem;
    color: var(--primary-color);
}
.authentication-brand-link { text-decoration: none; }
.authentication-cover {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 1), rgba(var(--secondary-rgb), 0.9));
    height: 100vh;
}
.authentication-cover-content { height: 100%; display: flex; align-items: center; }

/* ===== Decorative rainbow strip (top of MainLayout) ===== */
.app-rainbow-strip {
    position: fixed; top: 0; left: 0; right: 0;
    height: 4px;
    z-index: 1040;
    background: linear-gradient(90deg,
        #ff8a00 0%, #ff5be0 25%, #8b5cf6 50%, #3b82f6 75%, #14b8a6 100%);
}
/* push header down a touch so the strip remains visible above it.
   Sidebar runs full-height (its own logo header sits at the top); the app header
   sits only over the content area (offset by the sidebar width). */
.app-header { top: 4px; }
.app-sidebar { top: 4px; }
.main-content { padding-top: 68px; }

/* ===== Sidebar brand block ===== */
.main-sidebar-header .header-logo {
    display: flex; align-items: center; gap: 0.7rem;
    text-decoration: none;
}
.main-sidebar-header .brand-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.18), rgba(var(--primary-rgb), 0.06));
    color: var(--primary-color);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
}
.main-sidebar-header .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.main-sidebar-header .brand-text__name {
    font-family: var(--display-font-family);
    font-size: 1rem; color: var(--custom-black); letter-spacing: -0.01em;
}
.main-sidebar-header .brand-text__name strong { font-weight: 700; }
.main-sidebar-header .brand-text__tld { font-weight: 500; opacity: 0.7; }
.main-sidebar-header .brand-text__tag {
    font-size: 0.7rem; color: var(--muted);
    margin-top: 2px; letter-spacing: 0.01em;
}

/* ===== Sidebar footer (dev mode badge) ===== */
.main-sidebar-footer {
    position: sticky; bottom: 0;
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--menu-border-color);
    background: var(--menu-bg);
}
.dev-mode-pill {
    font-size: 0.7rem; color: var(--muted);
    letter-spacing: 0.02em;
}
/* App sidebar uses flex column to push the footer down */
.app-sidebar { display: flex; flex-direction: column; }
.main-sidebar { flex: 1; }

/* ===== Header brand + signed-in pill ===== */
.app-header__brand {
    color: var(--custom-black) !important;
    font-size: 1rem;
}
.app-header__usertoggle { padding: 0.3rem 0.6rem; gap: 0.55rem; border-radius: 999px; }
.app-header__usertoggle:hover { background: rgba(var(--primary-rgb), 0.08); }
.app-header__user .dropdown-toggle::after { display: none; }
.app-header__avatar {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, var(--navy, #14284A), rgb(var(--primary-rgb)));
    color: #fff;
    font-weight: 600;
}
.app-header__who { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.app-header__name { font-size: 0.85rem; font-weight: 600; color: var(--custom-black); }
.app-header__role { font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.app-header__caret { color: var(--muted); font-size: 1.1rem; }
@media (max-width: 575.98px) { .app-header__who, .app-header__caret { display: none; } }

/* ===== Welcome hero polish ===== */
.welcome-hero__title { font-size: 2rem; }
.welcome-hero .btn-light { color: var(--primary-color); font-weight: 600; }
.welcome-hero .btn-outline-light { border-color: rgba(255,255,255,0.6); color: #fff; }

/* ===== Event tile (Event-mode, used on /events) =====
   Icon-avatar left, title + chip header, description, meta row, action row.
   Overrides the cover-image-top markup that srijova-design-system.css ships. */
.srijova-event-tile {
    background: var(--srijova-surface);
    border: 1px solid var(--srijova-border);
    border-radius: var(--srijova-radius);
    box-shadow: var(--srijova-shadow-sm);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.srijova-event-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--srijova-shadow-md);
    border-color: var(--srijova-brand-light);
}
.srijova-event-tile__row {
    display: flex; gap: 1rem;
    padding: 1rem 1.1rem;
}
.srijova-event-tile__icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
}
.srijova-event-tile__icon--brand   { background: var(--srijova-brand-50);   color: var(--srijova-brand); }
.srijova-event-tile__icon--success { background: var(--srijova-success-bg); color: var(--srijova-success); }
.srijova-event-tile__icon--warning { background: #fffbeb;               color: #92400e; }
.srijova-event-tile__icon--danger  { background: var(--srijova-danger-bg);  color: var(--srijova-danger); }
.srijova-event-tile__icon--neutral { background: var(--srijova-surface-hover); color: var(--srijova-text-muted); }
.srijova-event-tile__body { flex: 1; min-width: 0; }
.srijova-event-tile__header {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem;
    margin-bottom: 0.35rem;
}
.srijova-event-tile__title {
    font-size: 1.05rem; font-weight: 600;
    color: var(--srijova-text); margin: 0;
    flex: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.srijova-event-tile__desc {
    color: var(--srijova-text-muted);
    font-size: 0.875rem;
    margin: 0 0 0.5rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.srijova-event-tile__meta {
    display: flex; flex-wrap: wrap; gap: 0.75rem 1rem;
    font-size: 0.8125rem; color: var(--srijova-text-muted);
}
.srijova-event-tile__meta-item { display: inline-flex; align-items: center; gap: 0.35rem; }
.srijova-event-tile__meta-item i.bx { font-size: 0.95rem; opacity: 0.85; }
.srijova-event-tile__actions {
    border-top: 1px solid var(--srijova-border);
    background: var(--srijova-bg);
    padding: 0.55rem 0.9rem;
    display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.srijova-event-tile__actions .btn { padding: 0.3rem 0.7rem; font-size: 0.8125rem; }
/* Grid wrapper used by Events.razor */
.srijova-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1rem;
}

/* Definition-list grid used by EventDesigner detail card + EventSubmissions answer preview */
.srijova-event-meta-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.4rem 1rem;
    margin: 0;
}
.srijova-event-meta-list dt {
    font-weight: 500; color: var(--srijova-text-muted);
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.875rem;
}
.srijova-event-meta-list dt i.bx { font-size: 1rem; opacity: 0.85; }
.srijova-event-meta-list dd { margin: 0; color: var(--srijova-text); font-size: 0.9rem; }

/* Stronger srijova-chip dark-theme variants used by event-tile header chips */
.srijova-chip--neutral { background: var(--srijova-surface-hover); color: var(--srijova-text-muted); }
.srijova-chip--brand   { background: var(--srijova-brand-50);   color: var(--srijova-brand-dark); }

/* ===== Anonymous shell polish (EmptyLayout) =====
   Styles the bare inputs + plain <button> the SriJova RCL components render inside
   the .srijova-signin__card. Scoped under .srijova-anon so they don't leak into the
   authenticated shell. */
.srijova-anon-brand__icon-wrap {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.18), rgba(var(--primary-rgb), 0.06));
    color: rgb(var(--primary-rgb));
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    margin-right: 0.7rem;
}
.srijova-anon-brand { align-items: center; }

.srijova-anon .srijova-signin__card .form-control,
.srijova-anon .srijova-signin__card input[type=email],
.srijova-anon .srijova-signin__card input[type=password],
.srijova-anon .srijova-signin__card input[type=text] {
    width: 100%;
    background: var(--form-control-bg, var(--srijova-surface));
    border: 1px solid var(--form-control-border, var(--srijova-border-strong));
    color: var(--srijova-text);
    border-radius: var(--srijova-radius-sm);
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
}
.srijova-anon .srijova-signin__card input:focus {
    outline: 2px solid rgb(var(--primary-rgb));
    outline-offset: 1px;
    border-color: rgb(var(--primary-rgb));
}
.srijova-anon .srijova-signin__card label {
    display: block;
    font-size: 0.85rem; font-weight: 500;
    color: var(--srijova-text);
    margin-bottom: 0.35rem;
}
/* Style every <button> inside the card EXCEPT link-style buttons and Bootstrap close buttons. */
.srijova-anon .srijova-signin__card button {
    width: 100%;
    background: linear-gradient(135deg, rgb(var(--primary-rgb)), #8b5cf6);
    color: #fff;
    border: 0;
    border-radius: var(--srijova-radius-sm);
    padding: 0.65rem 1rem;
    font-weight: 600; font-size: 0.95rem;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
    margin-top: 0.25rem;
}
.srijova-anon .srijova-signin__card button.btn-link,
.srijova-anon .srijova-signin__card button.btn-close {
    background: none; box-shadow: none; padding: 0; width: auto; color: inherit;
}
.srijova-anon .srijova-signin__card button:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.35); }
.srijova-anon .srijova-signin__card button:active { transform: translateY(0); }
.srijova-anon .srijova-signin__card button.btn-link:hover,
.srijova-anon .srijova-signin__card button.btn-close:hover { transform: none; box-shadow: none; }
.srijova-anon .srijova-signin__card h1,
.srijova-anon .srijova-signin__card h2,
.srijova-anon .srijova-signin__card h3 {
    font-size: 1.4rem; font-weight: 700; margin-bottom: 0.4rem;
    color: var(--srijova-text);
    font-family: var(--display-font-family);
}
.srijova-anon .app-rainbow-strip { position: fixed; }
.srijova-anon-top { padding-top: 1.6rem; }

/* ===== Two-column auth split (form left, cover right) ===== */
.srijova-anon--split { min-height: 100vh; display: flex; flex-direction: column; }
.srijova-anon-split {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 0;
}
.srijova-anon-split__form {
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem 2rem 3rem;
}
.srijova-anon-split__form .srijova-signin { width: 100%; max-width: 460px; }
.srijova-anon-split__form .srijova-signin__card {
    background: var(--srijova-surface);
    border: 1px solid var(--srijova-border);
    border-radius: var(--srijova-radius-lg);
    padding: 2.25rem 2rem;
    box-shadow: var(--srijova-shadow-lg);
}
.srijova-anon-split__cover {
    align-self: stretch;
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem;
}
.srijova-anon-cover {
    width: 100%; height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.18), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.15), transparent 50%),
        linear-gradient(135deg, rgb(var(--primary-rgb)) 0%, #8b5cf6 55%, #ec4899 100%);
    border-radius: var(--srijova-radius-lg);
    display: flex; align-items: center; justify-content: center;
    padding: 3rem 2.5rem;
    color: #fff;
    box-shadow: var(--srijova-shadow-lg);
    position: relative;
    overflow: hidden;
    min-height: 540px;
}
.srijova-anon-cover__inner { max-width: 460px; }
.srijova-anon-cover__title {
    font-family: var(--display-font-family);
    font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em;
    color: #fff; margin-bottom: 1rem; line-height: 1.1;
}
.srijova-anon-cover__lede {
    font-size: 1.05rem; line-height: 1.55;
    color: rgba(255,255,255,0.92);
    margin-bottom: 1.75rem;
}
.srijova-anon-cover__bullets {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 0.65rem;
}
.srijova-anon-cover__bullets li {
    display: flex; align-items: center; gap: 0.55rem;
    font-size: 0.95rem; color: rgba(255,255,255,0.92);
}
.srijova-anon-cover__bullets i.bx {
    font-size: 1.1rem; color: rgba(255,255,255,0.9); opacity: 0.95; flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .srijova-anon-split { grid-template-columns: minmax(0, 1fr); }
    .srijova-anon-split__cover { display: none; }
}

/* ===== Anonymous landing extras (over srijova-design-system.css) ===== */
/* Big rounded logo tile centered in the hero. */
.srijova-landing__logo {
    width: 96px; height: 96px;
    margin: 0 auto 1rem;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.18), rgba(var(--primary-rgb), 0.06));
    color: rgb(var(--primary-rgb));
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem;
}
/* Accent chip under the logo. */
.srijova-landing__chip {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    margin-bottom: 1rem;
    font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.12em;
    color: #c2410c;
    background: #fff7ed;
    border-radius: 999px;
}
[data-theme-mode="dark"] .srijova-landing__chip {
    color: #fdba74;
    background: rgba(249, 115, 22, 0.16);
}
/* Center the CTA button row. */
.srijova-landing__cta { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }
/* Feature-icon tone variants matching the home Quick-actions. */
.srijova-feature__icon--brand   { background: var(--srijova-brand-50);   color: var(--srijova-brand); }
.srijova-feature__icon--accent  { background: #fff7ed;               color: var(--srijova-accent); }
.srijova-feature__icon--success { background: var(--srijova-success-bg); color: var(--srijova-success); }
[data-theme-mode="dark"] .srijova-feature__icon--accent { background: rgba(249, 115, 22, 0.18); color: #fb923c; }
.srijova-feature__icon i.bx { font-size: 1.2rem; }
/* Tighten landing padding on the auth shell (which already has its own top brand). */
.srijova-anon .srijova-landing { padding: 1.5rem 1rem 3rem; }

/* ===== Public RSVP hero (prompt 07) ===== */
.public-hero {
    min-height: 220px;
    background-size: cover; background-position: center;
    background-color: rgb(var(--primary-rgb));
    display: flex; align-items: flex-end;
}
.public-hero__overlay {
    width: 100%; padding: 1.5rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
}

/* ===== InviteToJoin v1 — navy sidebar (default/light theme only) =====
   Cream/dark modes keep their own --menu-* values, so scope the light-on-navy
   text to the default theme (no data-theme-mode attribute). */
[data-menu-styles="dark"] .app-sidebar .header-logo,
[data-menu-styles="dark"] .app-sidebar .brand-text__name,
[data-menu-styles="dark"] .app-sidebar .brand-text__name strong {
    color: #ffffff;
}
[data-menu-styles="dark"] .app-sidebar .brand-text__tag,
[data-menu-styles="dark"] .app-sidebar .brand-text__tld,
[data-menu-styles="dark"] .app-sidebar .slide__category,
[data-menu-styles="dark"] .app-sidebar .dev-mode-pill {
    color: #9fb0cc;
    opacity: 1;
}
[data-menu-styles="dark"] .app-sidebar .brand-icon {
    background: linear-gradient(135deg, #1E6FE0, #3f6fb5);
    color: #ffffff;
}
[data-menu-styles="dark"] .app-sidebar .side-menu__item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}
[data-menu-styles="dark"] .app-sidebar .side-menu__item.active {
    background: rgba(30, 111, 224, 0.30);
    color: #ffffff;
    font-weight: 600;
}
[data-menu-styles="dark"] .app-sidebar .side-menu__item.active .side-menu__icon {
    opacity: 1;
    color: #7fb1f7;
}
