body {
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  padding-top: 4.5rem;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  box-shadow: 0 0.5rem 1rem rgba(11, 30, 45, 0.1);
}

.topbar .brand-logo {
  width: 150px;
  height: auto;
  margin-right: 1rem;
}

.main-content {
  margin-top: 2.5rem;
  padding-top: 40px;
}

#memberWizard {
  margin-top: 0;
}

.guest-list .badge {
  font-size: 0.75rem;
  text-transform: uppercase;
}

.guest-list .guest-item {
  border-bottom: 1px solid rgba(10, 58, 94, 0.1);
  padding: 0.75rem 0;
}

.guest-list .guest-item:last-child {
  border-bottom: none;
}

.guest-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.guest-list[data-loading="true"] {
  opacity: 0.6;
  pointer-events: none;
}

#reportsRoot[data-loading="true"] {
  opacity: 0.6;
  pointer-events: none;
}

.text-muted-small {
  font-size: 0.85rem;
  color: rgba(11, 30, 45, 0.7);
}

#reportsCards .card {
  min-height: 140px;
}

.table thead {
  background: rgba(10, 58, 94, 0.08);
}

.table tbody tr:hover {
  background: rgba(28, 110, 164, 0.08);
}

.member-row .member-toggle {
  color: inherit;
  display: block;
  text-align: left;
  width: 100%;
  position: relative;
  padding-right: 1.5rem;
}

.member-row .member-toggle::after {
  content: '\25BC';
  font-size: 0.75rem;
  color: rgba(11, 30, 45, 0.6);
  position: absolute;
  right: 0;
  top: 0.35rem;
  transition: transform 0.2s ease;
}

.member-row .member-toggle.is-open::after {
  transform: rotate(-180deg);
}

.member-detail td {
  background: rgba(10, 58, 94, 0.04);
}

.dashboard-nav {
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dashboard-nav .nav-link {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  color: var(--icm-primary);
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: var(--icm-primary);
  border-color: var(--icm-primary);
  color: #fff;
}

.dashboard-view[hidden] {
  display: none !important;
}

.reports-view[hidden] {
  display: none !important;
}

.prayer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.prayer-slot {
  width: 100%;
  text-transform: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.prayer-slot.prayer-slot-owned {
  border-color: rgba(25, 135, 84, 0.5);
  color: #198754;
}

.prayer-slot.prayer-slot-owned.active,
.prayer-slot.active {
  background-color: var(--icm-primary);
  border-color: var(--icm-primary);
  color: #fff;
}

.prayer-slot.prayer-slot-unavailable {
  opacity: 0.6;
  cursor: not-allowed;
}

.prayer-slot:disabled {
  cursor: not-allowed;
}

.prayer-slot.prayer-slot-locked {
  border-style: dashed;
}

#prayerMessage strong {
  font-weight: 600;
}

.badge-prayer {
  background-color: rgba(11, 58, 94, 0.12);
  color: var(--icm-primary);
  font-weight: 600;
  text-transform: none;
}

.member-card {
  border: 1px solid #e6e9ed;
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.member-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #e6e9ed;
  background: #f7f9fb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-name {
  font-weight: 700;
  color: var(--icm-primary);
}

.member-group {
  font-weight: 600;
}

@media (max-width: 576px) {
  .prayer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fc .fc-toolbar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--icm-primary);
}

.fc .fc-button-primary {
  background-color: var(--icm-primary);
  border-color: var(--icm-primary);
}

.fc .fc-button-primary:hover,
.fc .fc-button-primary:focus {
  background-color: #0a315d;
  border-color: #0a315d;
}

#scheduleCalendar {
  min-height: 600px;
}

.schedule-board-card {
  --schedule-accent-rgb: 10, 58, 94;
  --schedule-card-gradient: linear-gradient(180deg, #f7f9fb 0%, #fff 100%);
  --schedule-card-border: #e6e9ed;
  position: relative;
  border: 1px solid var(--schedule-card-border);
  border-radius: 12px;
  padding: 1rem;
  background: var(--schedule-card-gradient);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
}

.schedule-board-date {
  font-weight: 700;
  color: rgb(var(--schedule-accent-rgb));
  text-transform: capitalize;
}

.schedule-board-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.schedule-board-description {
  color: #425466;
}

.schedule-board-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(var(--schedule-accent-rgb), 0.12);
  color: rgb(var(--schedule-accent-rgb));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.schedule-board-bg-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0.5rem;
  pointer-events: none;
  opacity: 0.08;
  color: rgb(var(--schedule-accent-rgb));
  font-size: 5rem;
}

.schedule-board-active #scheduleCalendar .fc-view-harness,
.schedule-board-active #scheduleCalendar .fc-scrollgrid {
  display: none !important;
}

.schedule-board-active #scheduleCalendar {
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  min-height: auto;
}

.schedule-board-active #scheduleCalendar .fc-header-toolbar .fc-toolbar-chunk:first-child,
.schedule-board-active #scheduleCalendar .fc-header-toolbar .fc-toolbar-chunk .fc-today-button {
  display: none;
}

.schedule-board-active #scheduleCalendar .fc-header-toolbar .fc-toolbar-chunk {
  flex: 1;
  justify-content: center;
}

.schedule-card-culto {
  --schedule-accent-rgb: 220, 53, 69;
  --schedule-card-gradient: linear-gradient(135deg, rgba(220, 53, 69, 0.08) 0%, rgba(220, 53, 69, 0.02) 100%);
  --schedule-card-border: rgba(220, 53, 69, 0.16);
}

.schedule-card-ceia {
  --schedule-accent-rgb: 111, 66, 193;
  --schedule-card-gradient: linear-gradient(135deg, rgba(111, 66, 193, 0.08) 0%, rgba(111, 66, 193, 0.02) 100%);
  --schedule-card-border: rgba(111, 66, 193, 0.16);
}

.schedule-card-promocao {
  --schedule-accent-rgb: 253, 126, 20;
  --schedule-card-gradient: linear-gradient(135deg, rgba(253, 126, 20, 0.08) 0%, rgba(253, 126, 20, 0.02) 100%);
  --schedule-card-border: rgba(253, 126, 20, 0.18);
}

.schedule-card-batismo {
  --schedule-accent-rgb: 13, 110, 253;
  --schedule-card-gradient: linear-gradient(135deg, rgba(13, 110, 253, 0.08) 0%, rgba(13, 110, 253, 0.02) 100%);
  --schedule-card-border: rgba(13, 110, 253, 0.18);
}

.schedule-card-casamento {
  --schedule-accent-rgb: 108, 117, 125;
  --schedule-card-gradient: linear-gradient(135deg, #f3f4f6 0%, #fff 100%);
  --schedule-card-border: #e5e7eb;
}
