/* ============================================================
   CHURCH MEMBER DEVELOPMENT TRACKING SYSTEM — Custom Theme
   Stack: Bootstrap 5.3 + bootstrap-icons + this layer
   Language: Kiswahili default, ENG/SW toggle supported
   Brand: Cluster MAKUMBUSHO
   ============================================================ */

:root {
  --church-primary: #60C1E5;
  --church-primary-dark: #3da9d4;
  --church-primary-light: #A0E0EF;
  --church-accent: #60C1E5;
  --church-accent-light: #A0E0EF;
  --church-bg: #f5fbfd;
  --church-card-border: #A0E0EF;
  --church-text: #0f172a;
  --church-muted: #475569;
  --church-success: #60C1E5;
  --church-warning: #60C1E5;
  --church-danger: #60C1E5;
  --church-radius: 0.75rem;
  --church-shadow-sm: 0 2px 6px rgba(96, 193, 229, .12);
  --church-shadow: 0 8px 20px -4px rgba(96, 193, 229, .22);
  --church-shadow-lg: 0 18px 36px -8px rgba(96, 193, 229, .3);
  --sidebar-w: 248px;
  --sidebar-bg: #ffffff;
  --sidebar-border: #A0E0EF;
  /* Unified section accent palette */
  --sec-prayer: #60C1E5;
  --sec-bible: #60C1E5;
  --sec-learning: #60C1E5;
  --sec-gathering: #60C1E5;
  --sec-evangelism: #60C1E5;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--church-bg);
  color: var(--church-text);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--church-primary);
  color: #0f172a;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #ffffff;
}

::-webkit-scrollbar-thumb {
  background: #A0E0EF;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: #60C1E5;
}

/* ---------- Bootstrap overrides / branding ---------- */
.bg-primary,
.btn-primary,
.badge.bg-primary,
.progress-bar {
  --bs-primary: #60C1E5;
}

.btn-primary {
  --bs-btn-bg: #60C1E5;
  --bs-btn-border-color: #60C1E5;
  --bs-btn-color: #0f172a;
  --bs-btn-hover-bg: #A0E0EF;
  --bs-btn-hover-border-color: #60C1E5;
  --bs-btn-hover-color: #0f172a;
  --bs-btn-active-bg: #60C1E5;
  --bs-btn-active-border-color: #60C1E5;
  --bs-btn-active-color: #0f172a;
  --bs-btn-disabled-bg: #A0E0EF;
  --bs-btn-disabled-border-color: #A0E0EF;
  border-radius: .65rem;
  font-weight: 700;
  color: #0f172a !important;
  box-shadow: 0 4px 12px rgba(96, 193, 229, .28);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--church-shadow);
  color: #0f172a !important;
}

.btn-outline-primary {
  --bs-btn-color: #0f172a;
  --bs-btn-border-color: #60C1E5;
  --bs-btn-hover-bg: #60C1E5;
  --bs-btn-hover-border-color: #60C1E5;
  --bs-btn-hover-color: #0f172a;
  --bs-btn-active-bg: #A0E0EF;
  --bs-btn-active-border-color: #60C1E5;
  --bs-btn-active-color: #0f172a;
  color: #0f172a !important;
  border-color: #60C1E5 !important;
  background-color: #ffffff;
  font-weight: 600;
}

.btn-outline-primary:hover {
  background-color: #60C1E5 !important;
  color: #0f172a !important;
}

.btn {
  border-radius: .65rem;
  font-weight: 600;
}

.btn-gold {
  background: #60C1E5;
  border: 1px solid #60C1E5;
  color: #0f172a !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(96, 193, 229, .25);
}

.btn-gold:hover {
  background: #A0E0EF;
  border-color: #60C1E5;
  color: #0f172a !important;
  transform: translateY(-1px);
}

.text-primary {
  color: #0f172a !important;
}

.bg-primary {
  background-color: #60C1E5 !important;
  color: #0f172a !important;
}

.bg-primary-subtle {
  background-color: rgba(160, 224, 239, .35) !important;
  color: #0f172a !important;
}

/* Enforce strict #60C1E5 / #A0E0EF / #ffffff color consistency across all components */
.bg-warning,
.bg-success,
.bg-info,
.bg-danger,
.text-bg-warning,
.text-bg-success,
.text-bg-info,
.text-bg-danger,
.text-bg-primary {
  background-color: #60C1E5 !important;
  color: #0f172a !important;
  border-color: #60C1E5 !important;
}

.bg-warning-subtle,
.bg-success-subtle,
.bg-info-subtle,
.bg-danger-subtle {
  background-color: rgba(160, 224, 239, .35) !important;
  color: #0f172a !important;
}

.text-warning,
.text-success,
.text-info,
.text-danger {
  color: #0f172a !important;
}

.border-danger,
.border-warning,
.border-success,
.border-info,
.border-primary {
  border-color: #A0E0EF !important;
}

.btn-warning,
.btn-success,
.btn-info,
.btn-danger {
  background-color: #60C1E5 !important;
  border-color: #60C1E5 !important;
  color: #0f172a !important;
  font-weight: 600;
}

.btn-warning:hover,
.btn-success:hover,
.btn-info:hover,
.btn-danger:hover {
  background-color: #A0E0EF !important;
  border-color: #60C1E5 !important;
  color: #0f172a !important;
}

.btn-outline-warning,
.btn-outline-success,
.btn-outline-info,
.btn-outline-danger {
  background-color: #ffffff !important;
  border-color: #60C1E5 !important;
  color: #0f172a !important;
  font-weight: 600;
}

.btn-outline-warning:hover,
.btn-outline-success:hover,
.btn-outline-info:hover,
.btn-outline-danger:hover {
  background-color: #60C1E5 !important;
  border-color: #60C1E5 !important;
  color: #0f172a !important;
}

.card {
  border: 1px solid var(--church-card-border);
  border-radius: var(--church-radius);
  box-shadow: var(--church-shadow-sm);
}

.card-header {
  background: #fff;
  border-bottom: 1px solid var(--church-card-border);
  border-radius: var(--church-radius) var(--church-radius) 0 0 !important;
  font-weight: 800;
}

.table thead th {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--church-muted);
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.table tbody tr {
  transition: background .15s ease;
}

.table tbody tr:hover {
  background: #f8fafc;
}

.badge {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .01em;
  padding: .4em .8em;
}

.form-control,
.form-select {
  border-radius: .75rem;
  border-color: #cbd5e1;
  padding: .65rem .9rem;
  color: #0f172a;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--church-primary);
  box-shadow: 0 0 0 .25rem rgba(67, 56, 202, .15);
  color: #0f172a;
}

/* Modern elevated church filter pill component */
.church-filter-pill {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #A0E0EF;
  border-radius: 9999px;
  padding: 3px 6px 3px 14px;
  box-shadow: 0 1px 3px rgba(96, 193, 229, 0.12);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 100%;
}
.church-filter-pill:hover {
  border-color: #60C1E5;
  box-shadow: 0 4px 12px rgba(96, 193, 229, 0.2);
}
.church-filter-pill.is-active {
  background: rgba(160, 224, 239, 0.3);
  border-color: #60C1E5;
  box-shadow: 0 0 0 3px rgba(96, 193, 229, 0.2);
}
.church-filter-pill .church-filter-icon {
  color: #60C1E5;
  font-size: 0.95rem;
  margin-right: 6px;
  display: inline-flex;
  align-items: center;
}
.church-filter-pill .church-filter-label {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #334155;
  margin-right: 4px;
  white-space: nowrap;
}
.church-filter-pill.is-active .church-filter-label {
  color: #0f172a;
}
.church-filter-pill select.church-filter-select {
  border: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  color: #0f172a !important;
  padding: 4px 28px 4px 4px !important;
  cursor: pointer;
  min-width: 210px;
}
.church-filter-pill.is-active select.church-filter-select {
  color: #0f172a !important;
  font-weight: 800 !important;
}
.church-filter-pill .church-filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #A0E0EF;
  color: #0f172a;
  font-size: 0.72rem;
  text-decoration: none;
  transition: all 0.15s ease;
  margin-left: 4px;
  flex-shrink: 0;
}
.church-filter-pill .church-filter-reset:hover {
  background: #60C1E5;
  color: #0f172a;
  transform: scale(1.08);
}

/* Standalone church filter select for forms/pages */
.church-filter-standalone {
  font-weight: 700;
  color: #0f172a;
  border: 1.5px solid #A0E0EF;
  background-color: #ffffff;
  border-radius: 0.65rem;
  font-size: 0.92rem;
  padding: 0.45rem 2.2rem 0.45rem 0.85rem;
  transition: all 0.2s ease;
}
.church-filter-standalone:focus {
  border-color: #60C1E5 !important;
  box-shadow: 0 0 0 3px rgba(96, 193, 229, 0.25) !important;
  color: #0f172a !important;
}

/* Make options inside select clearly readable on all OS/browsers */
select option,
.form-select option {
  color: #0f172a !important;
  background-color: #ffffff !important;
  font-weight: 600 !important;
  padding: 8px 12px !important;
}

select option:checked,
select option[selected],
.form-select option:checked {
  font-weight: 800 !important;
  background-color: #A0E0EF !important;
  color: #0f172a !important;
}


.form-label {
  font-weight: 700;
  font-size: .9rem;
}

.alert {
  border-radius: .9rem;
  border: none;
  box-shadow: var(--church-shadow-sm);
}

.modal-content {
  border-radius: 1.2rem;
  border: none;
  box-shadow: var(--church-shadow-lg);
}

.offcanvas {
  border: none;
}

.dropdown-menu {
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  box-shadow: var(--church-shadow);
  padding: .5rem;
}

.dropdown-item {
  border-radius: .6rem;
  font-weight: 600;
}

.dropdown-item:active {
  background: var(--church-primary);
}

.page-link {
  border-radius: .6rem !important;
  margin: 0 .15rem;
  border-color: #e2e8f0;
  color: var(--church-primary);
  font-weight: 700;
}

.page-item.active .page-link {
  background: var(--church-primary);
  border-color: var(--church-primary);
}

.progress {
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.progress-bar {
  border-radius: 999px;
}

.nav-pills .nav-link {
  border-radius: 999px;
  font-weight: 700;
  color: var(--church-muted);
}

.nav-pills .nav-link.active {
  background: var(--church-primary);
  box-shadow: 0 6px 14px -6px rgba(67, 56, 202, .6);
}

/* ---------- App layout + Sidebar (No Scrollbar, Clean #60C1E5 / #A0E0EF / White) ---------- */
.app-shell {
  min-height: 100vh;
}

.app-sidebar,
.sidebar-offcanvas {
  width: var(--sidebar-w);
  background: #ffffff;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  border-right: 1.5px solid #A0E0EF;
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  height: 100vh;
  overflow: hidden;
  z-index: 1040;
  box-shadow: 4px 0 20px rgba(96, 193, 229, .1);
}

.sidebar-offcanvas {
  width: 256px !important;
  background: #ffffff !important;
}

.sidebar-brand {
  padding: .65rem .85rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  background: linear-gradient(135deg, #60C1E5 0%, #A0E0EF 100%);
  border-bottom: 1px solid #A0E0EF;
  flex-shrink: 0;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: .95rem;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #A0E0EF;
  flex-shrink: 0;
}

.brand-title {
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .02em;
  line-height: 1.15;
  color: #0f172a;
}

.brand-sub {
  font-size: .66rem;
  color: #1e293b;
  font-weight: 600;
  line-height: 1.15;
}

.sidebar-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: .35rem .55rem;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.sidebar-nav::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.sidebar-label {
  font-size: .6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #334155;
  margin: .42rem .5rem .15rem;
}

.sidebar-label:first-child {
  margin-top: .1rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .34rem .6rem;
  margin-bottom: 1px;
  border-radius: .48rem;
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  font-size: .79rem;
  line-height: 1.25;
  transition: background-color .14s ease, color .14s ease;
}

.sidebar-link i {
  font-size: .92rem;
  width: 1.15rem;
  text-align: center;
  color: #60C1E5;
  flex-shrink: 0;
  transition: color .14s ease;
}

.sidebar-link:hover {
  background: rgba(160, 224, 239, .38);
  color: #0f172a;
}

.sidebar-link:hover i {
  color: #0f172a;
}

.sidebar-link.active {
  background: #60C1E5;
  color: #0f172a !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(96, 193, 229, .35);
}

.sidebar-link.active i {
  color: #0f172a;
}

.sidebar-user {
  margin: .3rem .55rem .45rem;
  padding: .4rem .55rem;
  border-radius: .55rem;
  background: rgba(160, 224, 239, .3);
  border: 1px solid #A0E0EF;
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-shrink: 0;
}

.sidebar-user-info {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.sidebar-user-name {
  font-size: .74rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: .64rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-logout {
  width: 26px;
  height: 26px;
  border-radius: .4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #60C1E5;
  text-decoration: none;
  font-size: .8rem;
  flex-shrink: 0;
  transition: all .14s ease;
}

.sidebar-logout:hover {
  color: #0f172a;
  background: #60C1E5;
  border-color: #60C1E5;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .82rem;
  color: #0f172a;
  background: #60C1E5;
  border: 1.5px solid #A0E0EF;
  flex-shrink: 0;
}

.avatar-sm {
  width: 28px;
  height: 28px;
  font-size: .74rem;
}

.avatar-lg {
  width: 72px;
  height: 72px;
  font-size: 1.5rem;
}

.app-main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #ffffff;
  border-bottom: 1.5px solid #A0E0EF;
  min-height: 50px;
}

.topbar-title {
  font-weight: 800;
  font-size: .98rem;
  color: #0f172a;
}

.content-wrap {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
}

@media (max-width: 991.98px) {
  .app-sidebar {
    display: none;
  }

  .app-main {
    margin-left: 0;
  }

  .content-wrap {
    padding: 1rem;
  }
}

/* ---------- Stat cards + icon circles ---------- */
.stat-card {
  border: 1px solid var(--church-card-border);
  border-radius: var(--church-radius);
  overflow: hidden;
  position: relative;
  background: #fff;
  box-shadow: var(--church-shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--stat-accent, var(--church-primary));
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--church-shadow);
}

.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: var(--stat-accent, var(--church-primary));
  flex-shrink: 0;
  background: var(--church-primary-light);
}

.stat-num {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--church-text) !important;
}

.stat-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--church-muted);
}

.stat-trend {
  font-size: .78rem;
  font-weight: 600;
}

.stat-green,
.stat-blue,
.stat-amber,
.stat-rose,
.stat-violet,
.stat-purple,
.stat-indigo {
  --stat-accent: var(--church-primary);
}

/* ---------- Consistent form sections ---------- */
.form-section {
  background: #fff;
  border-radius: var(--church-radius);
  overflow: hidden;
  border: 1px solid var(--church-card-border);
  border-left: 4px solid var(--church-primary);
  box-shadow: var(--church-shadow-sm);
  transition: box-shadow .2s ease;
}

.form-section:hover {
  box-shadow: var(--church-shadow);
}

.form-section-head {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .9rem 1.15rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--church-card-border);
}

.form-section-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  color: var(--church-primary);
  background: var(--church-primary-light);
  flex-shrink: 0;
}

.form-section-title {
  font-weight: 800;
  margin: 0;
  font-size: .98rem;
}

.form-section-sub {
  font-size: .8rem;
  color: var(--church-muted);
  margin: 0;
}

.section-prayer,
.section-bible,
.section-learning,
.section-gathering,
.section-evangelism {
  --sec-color: var(--church-primary);
  --sec-bg: #f8fafc;
}

.completion-dots {
  display: flex;
  gap: .5rem;
}

.completion-dot {
  width: 34px;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  transition: all .25s ease;
}

.completion-dot.done {
  background: var(--church-success);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .15);
}

/* ---------- Hover lift / gradients / polish ---------- */
.hover-lift {
  transition: transform .2s ease, box-shadow .2s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--church-shadow);
}

.gradient-hero {
  background: linear-gradient(135deg, #60C1E5 0%, #A0E0EF 100%);
  color: #0f172a;
  border: 1px solid #60C1E5;
  border-radius: var(--church-radius);
  overflow: hidden;
  position: relative;
}

.gradient-hero .text-white-50,
.gradient-hero .text-white {
  color: #1e293b !important;
}

.gradient-hero .btn-light,
.gradient-hero .btn-outline-light {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #60C1E5 !important;
  font-weight: 700;
}

.gradient-hero .btn-light:hover,
.gradient-hero .btn-outline-light:hover {
  background: #A0E0EF !important;
  color: #0f172a !important;
}

.gradient-hero::before {
  display: none;
}

.chip-member {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border-radius: 999px;
  padding: .35rem .7rem;
  font-size: .82rem;
  font-weight: 600;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #60C1E5;
}

.role-pill {
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.timeline {
  border-left: 3px solid #A0E0EF;
  margin-left: .6rem;
  padding-left: 1.2rem;
}

.timeline-item {
  position: relative;
  padding-bottom: 1.2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.65rem;
  top: .2rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #60C1E5;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #A0E0EF;
}

/* ---------- Login ---------- */
.login-bg {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.22) 0%, rgba(15, 23, 42, 0.15) 50%, rgba(96, 193, 229, 0.15) 100%),
    url('../../images/pic1.jpeg') center / cover no-repeat fixed;
  position: relative;
  overflow: hidden;
}

.login-bg::before,
.login-bg::after {
  display: none;
}

.login-card {
  background: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(160, 224, 239, 0.55) !important;
  border-radius: 1.25rem;
  box-shadow: 0 25px 55px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
  z-index: 1;
  animation: riseIn .5s ease both;
}

.login-side {
  background: linear-gradient(155deg, rgba(96, 193, 229, 0.32) 0%, rgba(15, 23, 42, 0.48) 100%);
  border-right: 1px solid rgba(160, 224, 239, 0.35);
  color: #ffffff;
}

.login-side .brand-title,
.login-side h1 {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.login-side .brand-sub {
  color: rgba(255, 255, 255, 0.85);
}

.verse-box {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(160, 224, 239, 0.5);
  border-left: 4px solid #60C1E5;
  border-radius: .75rem;
  color: #ffffff;
}

.login-pill {
  background: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  border: 1px solid rgba(160, 224, 239, 0.55) !important;
  backdrop-filter: blur(6px);
}

.login-form-pane {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #ffffff;
}

.login-form-pane h2,
.login-form-pane .form-label {
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.login-form-pane .login-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.login-form-pane .input-group-text {
  background: rgba(255, 255, 255, 0.22) !important;
  border: 1px solid rgba(160, 224, 239, 0.65) !important;
  border-right: none !important;
  color: #ffffff !important;
}

.login-form-pane .form-control {
  background: rgba(255, 255, 255, 0.22) !important;
  border: 1px solid rgba(160, 224, 239, 0.65) !important;
  color: #ffffff !important;
  font-weight: 500;
}

.login-form-pane .form-control::placeholder {
  color: rgba(255, 255, 255, 0.72) !important;
}

.login-form-pane .form-control:focus {
  background: rgba(255, 255, 255, 0.30) !important;
  border-color: #60C1E5 !important;
  box-shadow: 0 0 0 3px rgba(96, 193, 229, 0.35) !important;
  color: #ffffff !important;
}

.login-form-pane .btn-pw-toggle {
  background: rgba(255, 255, 255, 0.22) !important;
  border: 1px solid rgba(160, 224, 239, 0.65) !important;
  border-left: none !important;
  color: #ffffff !important;
}

.login-form-pane .btn-pw-toggle:hover {
  background: rgba(96, 193, 229, 0.45) !important;
  color: #ffffff !important;
}

.login-install-box {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(160, 224, 239, 0.45);
  border-radius: .75rem;
}

.login-install-box a {
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;
}

.login-install-box a:hover {
  color: #A0E0EF !important;
  text-decoration: underline;
}

/* ---------- Profile header ---------- */
.profile-cover {
  background: linear-gradient(135deg, #60C1E5 0%, #A0E0EF 100%);
  border-radius: var(--church-radius);
  color: #0f172a;
  border: 1px solid #60C1E5;
  position: relative;
  overflow: hidden;
}

.profile-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .25;
}

/* ---------- Empty states ---------- */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--church-muted);
}

.empty-state .empty-icon {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  margin: 0 auto 1rem;
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
}

/* ---------- Skeletons ---------- */
.skeleton {
  position: relative;
  overflow: hidden;
  background: #e2e8f0;
  border-radius: .7rem;
  min-height: 14px;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.99);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes floatY {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.anim-fade-up {
  animation: fadeUp .5s ease both;
}

.anim-delay-1 {
  animation-delay: .08s;
}

.anim-delay-2 {
  animation-delay: .16s;
}

.anim-delay-3 {
  animation-delay: .24s;
}

.anim-delay-4 {
  animation-delay: .32s;
}

.float-soft {
  animation: floatY 5s ease-in-out infinite;
}

/* ---------- Language toggle ---------- */
.lang-toggle {
  background: #f1f5f9;
  border-radius: 999px;
  padding: 3px;
  display: inline-flex;
  gap: 2px;
  border: 1px solid #e2e8f0;
}

.lang-toggle button {
  border: none;
  border-radius: 999px;
  padding: .3rem .9rem;
  font-weight: 800;
  font-size: .8rem;
  color: var(--church-muted);
  background: transparent;
}

.lang-toggle button.active {
  background: var(--church-primary);
  color: #fff;
  box-shadow: 0 4px 10px -4px rgba(67, 56, 202, .6);
}

/* small helpers */
.fs-7 {
  font-size: .82rem;
}

.fw-800 {
  font-weight: 800;
}

.fw-900 {
  font-weight: 900;
}

.divider-gold {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--church-accent), transparent);
}

.score-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.footer-mini {
  color: #94a3b8;
  font-size: .8rem;
}

/* Meetings UI helpers */
button.badge {
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid #cbd5e1;
}

button.badge:hover {
  background: #e2e8f0 !important;
  color: #1e1b4b !important;
  transform: translateY(-1px);
}

.meeting-row {
  transition: background-color 0.15s ease;
}

.meeting-row:hover {
  background-color: #f8fafc;
}

/* ============================================================
   UNIVERSAL MODAL & DIALOG FORM SCROLL SYSTEM
   Ensures ALL modals and dialog forms scroll smoothly up and down
   on any screen size, with pinned headers and accessible footers.
   ============================================================ */

/* 1. Modal dialog bounds and centering */
.modal {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.modal-dialog {
  max-height: calc(100vh - 2rem);
  margin: 1rem auto;
  display: flex !important;
  flex-direction: column !important;
}

.modal-dialog.modal-dialog-centered {
  min-height: calc(100% - 2rem);
  justify-content: center;
}

/* 2. Modal content flex container with constrained viewport height */
.modal-content {
  max-height: calc(100vh - 2.5rem) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  position: relative;
}

/* 3. Modal header: pinned at top */
.modal-header,
.modal-content > form > .modal-header {
  flex-shrink: 0 !important;
  position: relative;
  z-index: 10;
}

/* 4. Modal footer: pinned at bottom so Save/Cancel buttons are always visible */
.modal-footer,
.modal-content > form > .modal-footer {
  flex-shrink: 0 !important;
  position: relative;
  z-index: 10;
  background-color: #ffffff;
}

/* 5. Direct form inside modal-content */
.modal-content > form {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow: hidden;
}

/* 6. Form with modal-body vs Form with direct inputs */
.modal-content > form:has(.modal-body) {
  overflow: hidden !important;
}
.modal-content > form:has(.modal-body) > .modal-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.modal-content > form:not(:has(.modal-body)),
.modal-content > .modal-body,
.modal-content > div:not(.modal-header):not(.modal-footer) {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* 7. Scrollbars: smooth, elegant, visible up/down scroll */
.modal-body,
.modal-dialog-scrollable .modal-body,
.modal-content > form,
.modal-content > form > .modal-body,
.modal-content > div:not(.modal-header):not(.modal-footer) {
  scrollbar-width: thin !important;
  scrollbar-color: #94a3b8 #f1f5f9 !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}

.modal-body::-webkit-scrollbar,
.modal-dialog-scrollable .modal-body::-webkit-scrollbar,
.modal-content > form::-webkit-scrollbar,
.modal-content > form > .modal-body::-webkit-scrollbar,
.modal-content > div:not(.modal-header):not(.modal-footer)::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}

.modal-body::-webkit-scrollbar-track,
.modal-dialog-scrollable .modal-body::-webkit-scrollbar-track,
.modal-content > form::-webkit-scrollbar-track,
.modal-content > form > .modal-body::-webkit-scrollbar-track,
.modal-content > div:not(.modal-header):not(.modal-footer)::-webkit-scrollbar-track {
  background: #f1f5f9 !important;
  border-radius: 4px !important;
}

.modal-body::-webkit-scrollbar-thumb,
.modal-dialog-scrollable .modal-body::-webkit-scrollbar-thumb,
.modal-content > form::-webkit-scrollbar-thumb,
.modal-content > form > .modal-body::-webkit-scrollbar-thumb,
.modal-content > div:not(.modal-header):not(.modal-footer)::-webkit-scrollbar-thumb {
  background: #94a3b8 !important;
  border-radius: 4px !important;
}

.modal-body::-webkit-scrollbar-thumb:hover,
.modal-dialog-scrollable .modal-body::-webkit-scrollbar-thumb:hover,
.modal-content > form::-webkit-scrollbar-thumb:hover,
.modal-content > form > .modal-body::-webkit-scrollbar-thumb:hover,
.modal-content > div:not(.modal-header):not(.modal-footer)::-webkit-scrollbar-thumb:hover {
  background: #64748b !important;
}

/* 8. Comprehensive Desktop & Mobile Responsive UI/UX System */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

.table-responsive {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #A0E0EF #f8fafc;
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #60C1E5;
  border-radius: 999px;
}

/* Mobile & Tablet Responsive Refinements */
@media (max-width: 991.98px) {
  .topbar {
    padding: 0.45rem 0.75rem !important;
    min-height: 48px;
  }

  .topbar-title {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
  }

  #mobileNav.offcanvas {
    width: 260px !important;
    max-width: 82vw !important;
    border-right: 1.5px solid #A0E0EF;
  }

  #mobileNav .sidebar-nav {
    overflow-y: auto !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  #mobileNav .sidebar-nav::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .content-wrap {
    padding: 0.85rem 0.75rem !important;
  }

  .gradient-hero {
    padding: 1rem !important;
  }

  .gradient-hero h3,
  .gradient-hero h4 {
    font-size: 1.15rem !important;
  }

  .stat-card {
    padding: 0.75rem !important;
  }

  .stat-icon {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
    border-radius: 10px;
  }

  .stat-num {
    font-size: 1.25rem !important;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .card-header {
    padding: 0.75rem 0.9rem !important;
  }

  .table th,
  .table td {
    padding: 0.55rem 0.6rem;
    font-size: 0.82rem;
  }

  .church-filter-pill {
    width: 100%;
    justify-content: space-between;
    padding: 4px 8px 4px 12px;
  }

  .church-filter-pill select.church-filter-select {
    min-width: 0;
    width: 100%;
    font-size: 0.82rem !important;
  }
}

@media (max-width: 576px) {
  .modal-dialog {
    margin: 0.5rem !important;
    max-height: calc(100vh - 1rem) !important;
  }
  .modal-content {
    max-height: calc(100vh - 1rem) !important;
  }

  .stat-card .d-flex.align-items-center.gap-3 {
    gap: 0.6rem !important;
  }

  .stat-icon {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .stat-num {
    font-size: 1.12rem !important;
  }
}
