/* ==========================================================================
   Steel City Baptist Church CRM — theme
   Plain CSS layered over Filament's fi-* classes (no build step).
   ========================================================================== */

:root {
    --scc-navy-950: #0b1526;
    --scc-navy-900: #0f1d33;
    --scc-navy-800: #172a46;
    --scc-navy-700: #22385a;
    --scc-ink: #0f172a;
    --scc-muted: #64748b;
    --scc-line: #e6eaf0;
    --scc-bg: #f4f6fa;
    --scc-card: #ffffff;
    --scc-radius: 14px;
    --scc-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
    --scc-shadow-lg: 0 10px 30px -12px rgba(15, 29, 51, .25);
}

/* ---------- Page ---------- */
.fi-body { background: var(--scc-bg); -webkit-font-smoothing: antialiased; }
.dark .fi-body { background: #0a1220; }

.fi-header-heading { letter-spacing: -.02em; font-weight: 700; }
.fi-header-subheading { color: var(--scc-muted); }
.fi-breadcrumbs { font-size: .8rem; }

/* ---------- Brand ---------- */
.scc-brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.scc-mark { width: 2.4rem; height: 2.4rem; flex: none; }
.scc-mark-white { display: none; }
.scc-brand-text { display: flex; flex-direction: column; line-height: 1.05; color: var(--scc-ink); }
.scc-brand-text strong { font-size: 1rem; font-weight: 750; letter-spacing: -.01em; }
.scc-brand-text small { font-size: .72rem; font-weight: 500; color: var(--scc-muted); letter-spacing: .02em; text-transform: uppercase; margin-top: .15rem; }
.dark .scc-mark-navy { display: none; }
.dark .scc-mark-white { display: block; }
.dark .scc-brand-text { color: #fff; }
.dark .scc-brand-text small { color: #94a3b8; }

/* Login & other simple pages: large centred mark */
.fi-simple-layout .scc-brand { flex-direction: column; gap: .9rem; text-align: center; }
.fi-simple-layout .scc-mark { width: 5.5rem; height: 5.5rem; }
.fi-simple-layout .scc-brand-text strong { font-size: 1.25rem; }
.fi-simple-layout .scc-brand-text { align-items: center; }
.fi-simple-layout { background:
    radial-gradient(1200px 500px at 50% -10%, rgba(45, 90, 155, .14), transparent 60%),
    var(--scc-bg); }
.fi-simple-main { border-radius: 20px !important; box-shadow: var(--scc-shadow-lg) !important; border: 1px solid var(--scc-line); }
.fi-simple-header-heading { letter-spacing: -.02em; }

/* ---------- Sidebar (deep navy) ---------- */
.fi-sidebar {
    background: linear-gradient(180deg, var(--scc-navy-900) 0%, var(--scc-navy-950) 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, .04);
}
.fi-sidebar-header { background: transparent !important; box-shadow: none !important; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.fi-sidebar .scc-mark-navy { display: none; }
.fi-sidebar .scc-mark-white { display: block; }
.fi-sidebar .scc-brand-text { color: #fff; }
.fi-sidebar .scc-brand-text small { color: #8ea0bd; }
.fi-sidebar-nav { padding-top: 1rem; }
.fi-sidebar-group-label { color: #6f83a3 !important; font-size: .68rem !important; font-weight: 700 !important; letter-spacing: .09em; text-transform: uppercase; }
.fi-sidebar-group-btn .fi-icon, .fi-sidebar-group-collapse-btn { color: #6f83a3 !important; }
.fi-sidebar-item-btn { border-radius: 10px !important; transition: background-color .15s ease, color .15s ease; }
.fi-sidebar-item-label { color: #c7d2e3 !important; font-weight: 500 !important; }
.fi-sidebar-item-btn > .fi-icon { color: #7f93b3 !important; }
.fi-sidebar-item-btn:hover { background: rgba(255, 255, 255, .06) !important; }
.fi-sidebar-item-btn:hover .fi-sidebar-item-label { color: #fff !important; }
/* Active page: one even, soft fill (no side bar) */
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn { background: rgba(255, 255, 255, .1) !important; box-shadow: none !important; }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn .fi-sidebar-item-label { color: #fff !important; font-weight: 600 !important; }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn > .fi-icon { color: #fff !important; }
.fi-sidebar .fi-badge { box-shadow: none; }
.fi-sidebar-footer, .fi-sidebar-database-notifications-btn-label { color: #c7d2e3 !important; }
.fi-sidebar .fi-icon-btn, .fi-sidebar-close-sidebar-btn, .fi-sidebar-close-collapse-sidebar-btn, .fi-sidebar-open-collapse-sidebar-btn { color: #9fb1cc !important; }

/* ---------- Top bar ---------- */
.fi-topbar {
    background: rgba(255, 255, 255, .82) !important;
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    box-shadow: none !important;
    border-bottom: 1px solid var(--scc-line);
}
.dark .fi-topbar { background: rgba(10, 18, 32, .82) !important; border-color: rgba(255, 255, 255, .06); }

/* ---------- Cards / sections ---------- */
.fi-section, .fi-ta-ctn, .fi-wi-stats-overview-stat, .fi-wi-chart, .fi-wi-widget > .fi-section {
    border-radius: var(--scc-radius) !important;
    box-shadow: var(--scc-shadow) !important;
    --tw-ring-color: var(--scc-line);
}
.fi-section:not(.fi-section-not-contained), .fi-ta-ctn { border: 1px solid var(--scc-line); --tw-ring-shadow: 0 0 #0000 !important; }
.dark .fi-section:not(.fi-section-not-contained), .dark .fi-ta-ctn { border-color: rgba(255, 255, 255, .07); }
.fi-section-header-heading { font-weight: 650 !important; letter-spacing: -.01em; }
.fi-section-header-description { color: var(--scc-muted); }

/* ---------- Tables ---------- */
.fi-ta-header-cell {
    background: #f8fafc;
    font-size: .72rem !important;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--scc-muted) !important;
}
.dark .fi-ta-header-cell { background: rgba(255, 255, 255, .02); }
.fi-ta-row { transition: background-color .12s ease; }
.fi-ta-row:hover { background: #f7f9fc; }
.dark .fi-ta-row:hover { background: rgba(255, 255, 255, .03); }
.fi-ta-header-toolbar { padding-block: .85rem !important; }

/* ---------- Tabs ---------- */
.fi-tabs { border-radius: 12px !important; box-shadow: var(--scc-shadow) !important; border: 1px solid var(--scc-line); }
.fi-tabs-item { border-radius: 9px !important; }

/* ---------- Badges & buttons ---------- */
.fi-badge { border-radius: 999px !important; font-weight: 600; padding-inline: .6rem !important; }
.fi-btn { border-radius: 10px !important; font-weight: 600 !important; }
.fi-input-wrp { border-radius: 10px !important; }

/* ---------- Stats tiles ---------- */
.fi-wi-stats-overview-stat { padding: 1.25rem 1.35rem !important; border: 1px solid var(--scc-line); transition: transform .15s ease, box-shadow .15s ease; }
.fi-wi-stats-overview-stat:hover { transform: translateY(-1px); box-shadow: var(--scc-shadow-lg) !important; }
.fi-wi-stats-overview-stat-label { font-size: .8rem !important; font-weight: 600 !important; color: var(--scc-muted) !important; text-transform: uppercase; letter-spacing: .05em; }
.fi-wi-stats-overview-stat-value { font-size: 2rem !important; letter-spacing: -.03em; font-weight: 750 !important; }
.fi-wi-stats-overview-stat-label-ctn .fi-icon {
    width: 2.25rem !important; height: 2.25rem !important; padding: .5rem; border-radius: 10px;
    background: color-mix(in oklab, var(--primary-500) 12%, transparent); color: var(--primary-600) !important;
}

/* ---------- Modals & dropdowns ---------- */
.fi-modal-window { border-radius: 18px !important; }
.fi-dropdown-panel { border-radius: 12px !important; box-shadow: var(--scc-shadow-lg) !important; }

/* ---------- Avatars ---------- */
.fi-avatar, .fi-user-avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--scc-line); }

/* ---------- Dashboard: welcome banner ---------- */
.scc-welcome {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem;
    padding: 1.6rem 1.75rem; border-radius: 18px; color: #fff;
    background:
        radial-gradient(600px 220px at 100% 0%, rgba(127, 176, 255, .28), transparent 70%),
        linear-gradient(135deg, #1d3456 0%, #2d5a9b 100%);
    box-shadow: var(--scc-shadow-lg);
}
.scc-welcome h2 { font-size: 1.65rem; font-weight: 750; letter-spacing: -.025em; margin: .15rem 0 .25rem; }
.scc-welcome-date { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #b9cdf0; margin: 0; }
.scc-welcome-sub { color: #d5e1f5; margin: 0; font-size: .92rem; }
.scc-welcome-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.scc-quick {
    display: inline-flex; align-items: center; gap: .5rem; padding: .6rem .95rem; border-radius: 11px;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18);
    color: #fff; font-weight: 600; font-size: .86rem; text-decoration: none; transition: background-color .15s ease, transform .15s ease;
}
.scc-quick:hover { background: rgba(255, 255, 255, .22); transform: translateY(-1px); }
.scc-quick-icon { width: 1rem; height: 1rem; color: #cfe0ff; }

/* ---------- Dashboard: visitor pipeline ---------- */
.scc-pipeline { display: flex; flex-direction: column; gap: .7rem; }
.scc-pipe-row { display: grid; grid-template-columns: 7.5rem 1fr 2.25rem; align-items: center; gap: .75rem; text-decoration: none; color: inherit; }
.scc-pipe-row:hover .scc-pipe-label { color: var(--primary-600); }
.scc-pipe-label { font-size: .86rem; font-weight: 500; }
.scc-pipe-track { height: .7rem; border-radius: 99px; background: #eef2f7; overflow: hidden; }
.dark .scc-pipe-track { background: rgba(255, 255, 255, .06); }
.scc-pipe-fill { display: block; height: 100%; border-radius: 99px; }
.scc-pipe-count { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.scc-c-danger { background: var(--danger-500); }
.scc-c-warning { background: var(--warning-500); }
.scc-c-info { background: var(--info-500); }
.scc-c-primary { background: var(--primary-500); }
.scc-c-success { background: var(--success-500); }
.scc-c-gray { background: var(--gray-400); }

/* ---------- Person profile header ---------- */
.scc-profile { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.scc-profile-photo { width: 5.5rem; height: 5.5rem; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--scc-line); }
.scc-profile-main { flex: 1 1 16rem; min-width: 0; }
.scc-profile-name { font-size: 1.5rem; font-weight: 750; letter-spacing: -.02em; margin: 0; line-height: 1.2; }
.scc-profile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; margin-top: .45rem; color: var(--scc-muted); font-size: .88rem; }
.scc-pill { display: inline-flex; align-items: center; padding: .2rem .65rem; border-radius: 99px; font-size: .75rem; font-weight: 650; }
.scc-pill-success { background: color-mix(in oklab, var(--success-500) 15%, transparent); color: var(--success-700); }
.scc-pill-info { background: color-mix(in oklab, var(--info-500) 15%, transparent); color: var(--info-700); }
.scc-pill-warning { background: color-mix(in oklab, var(--warning-500) 18%, transparent); color: var(--warning-700); }
.scc-pill-primary { background: color-mix(in oklab, var(--primary-500) 15%, transparent); color: var(--primary-700); }
.scc-pill-gray, .scc-pill-danger { background: #eef2f7; color: #475569; }
.scc-contact { display: flex; flex-wrap: wrap; gap: .5rem; }
.scc-contact a, .scc-contact span {
    display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .85rem; border-radius: 11px;
    border: 1px solid var(--scc-line); background: #fff; color: var(--scc-ink); font-size: .85rem; font-weight: 600; text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.dark .scc-contact a, .dark .scc-contact span { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .08); color: #e2e8f0; }
.scc-contact a:hover { border-color: var(--primary-300); box-shadow: 0 0 0 3px color-mix(in oklab, var(--primary-500) 12%, transparent); }
.scc-contact .fi-icon, .scc-contact svg { width: 1rem; height: 1rem; color: var(--primary-600); }
.scc-contact span { color: var(--scc-muted); cursor: default; }
@media (max-width: 640px) {
    .scc-profile-photo { width: 4.25rem; height: 4.25rem; }
    .scc-profile-name { font-size: 1.25rem; }
    .scc-contact a, .scc-contact span { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Journey to membership ---------- */
.scc-jr { --jr-line: #e3e8ef; --jr-on: var(--primary-600); --jr-goal: var(--success-600); }
.dark .scc-jr { --jr-line: rgba(255, 255, 255, .1); }
.scc-jr-steps { position: relative; display: grid; grid-template-columns: repeat(var(--steps), minmax(0, 1fr)); list-style: none; margin: .25rem 0 1.4rem; padding: 0; }
.scc-jr-steps::before, .scc-jr-steps::after {
    content: ""; position: absolute; top: 15px; height: 3px; border-radius: 3px;
    left: calc(50% / var(--steps)); right: calc(50% / var(--steps));
}
.scc-jr-steps::before { background: var(--jr-line); }
.scc-jr-steps::after { background: var(--jr-on); right: auto; width: calc((100% - 100% / var(--steps)) * var(--progress) / 100); }
.scc-jr-steps li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 .15rem; }
.scc-jr-dot {
    width: 33px; height: 33px; border-radius: 50%; display: grid; place-items: center;
    background: #fff; border: 2px solid var(--jr-line); color: #94a3b8; font-size: .8rem; font-weight: 700;
}
.dark .scc-jr-dot { background: #0f172a; }
.scc-jr-dot svg { width: .85rem; height: .85rem; }
.scc-jr-steps li.is-done .scc-jr-dot { background: var(--jr-on); border-color: var(--jr-on); color: #fff; box-shadow: 0 0 0 4px color-mix(in oklab, var(--primary-500) 15%, transparent); }
.scc-jr-steps li.is-goal.is-done .scc-jr-dot { background: var(--jr-goal); border-color: var(--jr-goal); box-shadow: 0 0 0 4px color-mix(in oklab, var(--success-500) 18%, transparent); }
.scc-jr-label { margin-top: .5rem; font-size: .78rem; font-weight: 650; line-height: 1.2; }
.scc-jr-steps li:not(.is-done) .scc-jr-label { color: #94a3b8; font-weight: 500; }
.scc-jr-date { margin-top: .15rem; font-size: .7rem; color: var(--scc-muted); min-height: 1em; }

.scc-jr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: .6rem; margin-bottom: 1.4rem; }
.scc-jr-stats > div { padding: .75rem .9rem; border-radius: 12px; background: #f6f8fb; border: 1px solid #edf1f6; }
.dark .scc-jr-stats > div { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .06); }
.scc-jr-stats span { display: block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--scc-muted); }
.scc-jr-stats strong { font-size: 1.45rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.3; }
.scc-jr-stats em { font-style: normal; font-size: .78rem; color: var(--scc-muted); margin-left: .3rem; }

.scc-jr-chart-head { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; font-weight: 650; margin-bottom: .6rem; }
.scc-jr-key { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; color: var(--scc-muted); font-size: .74rem; }
.scc-jr-key i { display: inline-block; width: .6rem; height: .6rem; }
.scc-jr-key .k-bar { border-radius: 2px; background: var(--jr-on); }
.scc-jr-key .k-pin { border-radius: 50%; background: var(--warning-500); margin-left: .5rem; }
.scc-jr-chart {
    display: grid; grid-template-columns: repeat(var(--weeks), minmax(0, 1fr)); align-items: end; gap: 3px;
    height: 7.5rem; padding-top: 1.1rem; border-bottom: 1px solid var(--jr-line);
    background-image: linear-gradient(to top, var(--jr-line) 1px, transparent 1px); background-size: 100% 33.33%;
}
.scc-jr-col { position: relative; height: 100%; display: flex; align-items: flex-end; }
.scc-jr-bar { width: 100%; border-radius: 4px 4px 1px 1px; background: linear-gradient(180deg, var(--primary-500), var(--primary-700)); }
.scc-jr-bar.is-empty { background: var(--jr-line); border-radius: 2px; }
.scc-jr-col:hover .scc-jr-bar:not(.is-empty) { filter: brightness(1.15); }
.scc-jr-pin { position: absolute; top: -1rem; left: 50%; width: .7rem; height: .7rem; margin-left: -.35rem; border-radius: 50%; background: var(--warning-500); box-shadow: 0 0 0 2px #fff; }
.scc-jr-pin.is-goal { background: var(--jr-goal); }
.scc-jr-axis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--scc-muted); margin-top: .35rem; }
.scc-jr-empty { font-size: .86rem; color: var(--scc-muted); }
@media (max-width: 640px) {
    .scc-jr-label { font-size: .64rem; }
    .scc-jr-date { display: none; }
    .scc-jr-dot { width: 27px; height: 27px; }
    .scc-jr-steps::before, .scc-jr-steps::after { top: 12px; }
}
