:root {
    --fc-bg: #f4f6fb;
    --fc-border: #e3e6ef;
    --fc-text: #2b2f3a;
    --fc-muted: #7a8194;
}

body {
    background: var(--fc-bg);
    color: var(--fc-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Header ---------- */
.site-header {
    background: linear-gradient(135deg, #4e73df 0%, #6f42c1 100%);
    color: #fff;
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}
.site-header h1 {
    font-weight: 700;
    margin: 0;
    font-size: 1.7rem;
}
.site-header p {
    margin: .25rem 0 0;
    opacity: .9;
}

/* ---------- Layout ---------- */
.card {
    border: 1px solid var(--fc-border);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

/* ---------- Faith filter pills ---------- */
.faith-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.faith-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border: 2px solid transparent;
    border-radius: 999px;
    padding: .35rem .8rem;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    user-select: none;
    transition: opacity .15s, transform .05s;
}
.faith-pill.off {
    opacity: .35;
}
.faith-pill:active {
    transform: scale(.97);
}

/* ---------- Calendar grid ---------- */
.cal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: .5rem;
    flex-wrap: wrap;
}
.cal-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--fc-border);
    border: 1px solid var(--fc-border);
    border-radius: 10px;
    overflow: hidden;
}
.cal-dow {
    background: #fff;
    text-align: center;
    font-weight: 700;
    font-size: .75rem;
    text-transform: uppercase;
    color: var(--fc-muted);
    padding: .5rem 0;
    letter-spacing: .03em;
}
.cal-cell {
    background: #fff;
    min-height: 110px;
    padding: .35rem;
    position: relative;
}
.cal-cell.other-month {
    background: #fafbfd;
}
.cal-cell.today .cal-daynum {
    background: #4e73df;
    color: #fff;
    border-radius: 50%;
}
.cal-daynum {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-size: .8rem;
    font-weight: 600;
    color: var(--fc-muted);
}
.cal-event {
    display: block;
    font-size: .72rem;
    line-height: 1.2;
    color: #fff;
    border-radius: 5px;
    padding: 2px 5px;
    margin-top: 3px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cal-event .dot {
    display: none;
}
.cal-more {
    font-size: .68rem;
    color: var(--fc-muted);
    margin-top: 2px;
    cursor: pointer;
}

/* ---------- List view ---------- */
.list-month {
    font-weight: 700;
    font-size: 1.05rem;
    margin: 1.25rem 0 .5rem;
    color: var(--fc-muted);
    text-transform: uppercase;
    letter-spacing: .03em;
    border-bottom: 2px solid var(--fc-border);
    padding-bottom: .25rem;
}
.list-item {
    display: flex;
    gap: .9rem;
    padding: .65rem .25rem;
    border-bottom: 1px solid var(--fc-border);
    align-items: flex-start;
}
.list-date {
    flex: 0 0 110px;
    font-weight: 600;
    color: var(--fc-text);
    font-size: .9rem;
}
.list-body {
    flex: 1;
}
.list-name {
    font-weight: 600;
}
.list-badge {
    display: inline-block;
    color: #fff;
    border-radius: 5px;
    font-size: .68rem;
    font-weight: 700;
    padding: 1px 7px;
    vertical-align: middle;
    margin-left: .35rem;
}
.list-type {
    font-size: .7rem;
    text-transform: uppercase;
    color: var(--fc-muted);
    letter-spacing: .03em;
}
.list-desc {
    font-size: .85rem;
    color: var(--fc-muted);
    margin-top: .15rem;
}

/* ---------- Event modal ---------- */
.event-faith-chip {
    display: inline-block;
    color: #fff;
    border-radius: 6px;
    padding: 2px 10px;
    font-weight: 600;
    font-size: .8rem;
}

.disclaimer {
    font-size: .78rem;
    color: var(--fc-muted);
}

/* ---------- Admin ---------- */
.admin-login-wrap {
    max-width: 380px;
    margin: 8vh auto;
}
.admin-nav {
    background: #2b2f3a;
}
.admin-nav .navbar-brand,
.admin-nav .nav-link {
    color: #fff !important;
}
.admin-nav .nav-link.active {
    font-weight: 700;
    border-bottom: 2px solid #4e73df;
}
.stat-card {
    border-radius: 12px;
    color: #fff;
    padding: 1.1rem 1.25rem;
}
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1080;
    padding: .75rem 1.25rem;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .3s, transform .3s;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
}
.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}
.toast-notification.success { background: #1cc88a; }
.toast-notification.danger  { background: #e74a3b; }
.toast-notification.warning { background: #f6c23e; color: #2b2f3a; }
.toast-notification.info    { background: #36b9cc; }

@media (max-width: 576px) {
    .cal-cell { min-height: 78px; }
    .cal-event { font-size: .62rem; }
    .list-date { flex-basis: 84px; font-size: .8rem; }
}
