body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.content {
    padding: 24px 20px 40px;
    min-height: 100vh;
    max-width: 860px;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.dashboard-hero {
    margin-bottom: 32px;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: #1d4261;
    margin: 0 0 6px 0;
}

.hero-sub {
    font-size: 13px;
    color: #666;
    margin: 0 0 14px 0;
}

.member-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8f4ec;
    border: 1px solid #b6ddc0;
    border-radius: 24px;
    padding: 6px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #2a6640;
}

.member-stat .fa-heart {
    color: #e05a5a;
    font-size: 12px;
}

.member-count {
    font-weight: 700;
    font-size: 15px;
}

.member-count-label {
    font-weight: 500;
}

/* ── Upcoming Activities ────────────────────────────────────────────────── */

.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upcoming-card {
    background: #f4f8fc;
    border: 1px solid #d0e4f5;
    border-left: 4px solid #1d4261;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.upcoming-card-info {
    flex: 1;
    min-width: 0;
}

.upcoming-action-btn {
    flex-shrink: 0;
    display: inline-block;
    padding: 6px 14px;
    background: #1d4261;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s;
}

.upcoming-action-btn:hover {
    background: #163450;
}

@media (max-width: 480px) {
    .upcoming-card {
        flex-direction: column;
        align-items: stretch;
    }

    .upcoming-action-btn {
        text-align: center;
    }
}

.upcoming-date {
    font-size: 11px;
    font-weight: 700;
    color: #3172a8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.upcoming-type-badge {
    background: #0a9396;
    color: #fff;
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    text-transform: uppercase;
}

.upcoming-title {
    font-size: 14px;
    font-weight: 700;
    color: #1d4261;
    margin-bottom: 4px;
}

.upcoming-location {
    font-size: 12px;
    color: #666;
}

.upcoming-location .fa {
    color: #3172a8;
    margin-right: 4px;
}

.upcoming-empty {
    font-size: 13px;
    color: #aaa;
    font-style: italic;
    margin: 0;
}

/* ===========================
   Today Highlight & Badge
   =========================== */
.upcoming-card-today {
    border-left: 5px solid #0a9396 !important;
    background: linear-gradient(to right, #f4fbfc, #ffffff) !important;
    box-shadow: 0 4px 12px rgba(10, 147, 150, 0.1) !important;
}

.today-badge {
    background: #0a9396;
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 1px;
    display: inline-block;
}

/* ===========================
   Location Button Override
   =========================== */
.upcoming-location .location-btn {
    margin-top: 8px;
}

/* ── Shared section heading ─────────────────────────────────────────────── */
.section-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #1d4261;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── QR Spotlight ───────────────────────────────────────────────────────── */
.new-features-section > .qr-spotlight,
.new-features-section > .roles-spotlight {
    margin: 12px 20px 16px;
}

.new-features-section > summary.section-heading .gold-shimmer-text {
    background: linear-gradient(to right, #996515 0%, #ffd700 35%, #fff8e1 50%, #ffd700 65%, #996515 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: sweep-right 6s infinite ease-in-out;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.teal-shimmer-text {
    background: linear-gradient(to right, #1d4261 0%, #0a9396 25%, #59d2d4 50%, #0a9396 75%, #1d4261 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: sweep-right 3s linear infinite;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@keyframes sweep-right {
    0% { background-position: 200% center; }
    100% { background-position: -200% center; }
}

.qr-spotlight {
    background: linear-gradient(135deg, #1d4261 0%, #2a6090 100%);
    border-radius: 12px;
    padding: 24px 24px 20px;
    margin-bottom: 16px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Shimmer sweep effect */
.qr-spotlight::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    transform: skewX(-25deg);
    animation: shimmer-sweep 6s infinite ease-in-out;
}

.pwa-spotlight {
    background: linear-gradient(135deg, #005f73 0%, #0a9396 100%) !important;
}

.qr-spotlight-header {
    margin-bottom: 20px;
}

.qr-spotlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 10px;
    animation: soft-pulse 2s infinite;
}

.qr-spotlight-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 6px;
}

.qr-spotlight-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin: 0;
    line-height: 1.6;
}

.qr-guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.qr-guide-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    padding: 18px 16px;
}

.qr-guide-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.qr-guide-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.qr-guide-icon--usher {
    background: rgba(255, 200, 80, 0.25);
    color: #ffd966;
}

.qr-guide-card-header h3 {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.qr-steps {
    margin: 0;
    padding-left: 18px;
    font-size: 12px;
    color: rgba(255,255,255,0.88);
    line-height: 1.75;
}

.qr-steps li {
    margin-bottom: 4px;
}

/* ── Participant Roles spotlight ────────────────────────────────────────── */
.roles-spotlight {
    background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%);
    border-radius: 12px;
    padding: 24px 24px 20px;
    margin-bottom: 28px;
    color: #fff;
}

.roles-spotlight-header {
    margin-bottom: 16px;
}

.roles-spotlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.roles-spotlight.sp-spotlight {
    background: linear-gradient(135deg, #4a3080 0%, #7b52c4 100%);
}

.roles-spotlight-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 6px;
}

.roles-spotlight-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin: 0;
    line-height: 1.6;
}

/* ── Attendance Intelligence spotlight ─────────────────────────────────── */
.ai-spotlight {
    background: linear-gradient(135deg, #b48a04 0%, #e5b106 100%);
    border-radius: 12px;
    padding: 24px 24px 20px;
    margin-bottom: 28px;
    color: #fff;
}

.ai-spotlight-header {
    margin-bottom: 20px;
}

.ai-spotlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.22);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.qr-guide-icon--ai {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* ── Participant Roles note (inside roles spotlight) ────────────────────── */
.qr-roles-note {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    padding: 14px 16px;
}

.qr-roles-note-icon {
    font-size: 18px;
    color: rgba(255,255,255,0.75);
    flex-shrink: 0;
    margin-top: 2px;
}

.qr-roles-note-body {
    font-size: 12px;
    color: rgba(255,255,255,0.88);
    line-height: 1.7;
}

.qr-roles-note-body strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.qr-roles-note-body p {
    margin: 0 0 6px;
}

.qr-roles-note-body p:last-child {
    margin-bottom: 0;
}

/* ── Steps intro paragraph ──────────────────────────────────────────────── */
.steps-intro {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: #555;
    line-height: 1.7;
    margin: -8px 0 20px;
}

/* ── Steps sub-heading ──────────────────────────────────────────────────── */
.steps-subheading {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #3172a8;
    margin: 0 0 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Collapsible dashboard sections ─────────────────────────────────────── */
.dashboard-section {
    background: #fff;
    border: 1px solid #e0e8f0;
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

#ministerAssignmentsSection {
    border-left: 5px solid #0a9396;
    animation: slide-in-up 0.6s ease-out, side-border-pulse 3s infinite ease-in-out;
}

.announcements-section {
    border-left: 5px solid #c9a227;
}

.announcements-section[open] {
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.15);
}

/* The carousel's own controls set their own centered max-width; let it use
   the full width of the dashboard-section card instead of the ~900px cap
   meant for the wide public landing pages. */
.announcements-section .ann-carousel-wrapper,
.announcements-section .ann-controls {
    max-width: none;
}

.new-features-section {
    border-left: 5px solid #ffd700;
    animation: slide-in-up 0.6s ease-out, gold-border-pulse 3s infinite ease-in-out;
}

#ministerAssignmentsSection[open] {
    box-shadow: 0 4px 15px rgba(10, 147, 150, 0.15);
}

.new-features-section[open] {
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.15);
}

.dashboard-section > summary.section-heading {
    padding: 14px 20px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    background: #f5f8fc;
    border-bottom: 1px solid transparent;
    transition: background 0.15s;
}

.dashboard-section > summary.section-heading:hover {
    background: #edf2f8;
}

.dashboard-section > summary.section-heading::-webkit-details-marker {
    display: none;
}

.dashboard-section > summary.section-heading::after {
    content: '\f105';
    font-family: FontAwesome;
    font-size: 14px;
    color: #3172a8;
    margin-left: auto;
    transition: transform 0.2s;
}

.dashboard-section[open] > summary.section-heading {
    border-bottom-color: #e0e8f0;
    background: #f0f5fb;
}

.dashboard-section[open] > summary.section-heading::after {
    transform: rotate(90deg);
}

.dashboard-section > summary + * {
    margin-top: 16px;
}

.dashboard-section > *:not(summary) {
    margin-left: 20px;
    margin-right: 20px;
}

.dashboard-section > *:last-child:not(summary) {
    margin-bottom: 20px;
}

/* ── About cards ────────────────────────────────────────────────────────── */

.info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.info-card {
    background: #fff;
    border: 1px solid #dde6f0;
    border-radius: 10px;
    padding: 20px 18px;
}

.info-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #e8f0f8;
    color: #1d4261;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 12px;
}

.info-card h3 {
    font-size: 13px;
    font-weight: 700;
    color: #1d4261;
    margin: 0 0 8px 0;
}

.info-card p {
    font-size: 12px;
    color: #555;
    line-height: 1.65;
    margin: 0;
}

/* ── Getting Started steps ──────────────────────────────────────────────── */

.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #eef2f7;
}

.step:last-child {
    border-bottom: none;
}

.step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #1d4261;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.step-body h4 {
    font-size: 13px;
    font-weight: 700;
    color: #1d4261;
    margin: 0 0 4px 0;
}

.step-body p {
    font-size: 12px;
    color: #555;
    line-height: 1.65;
    margin: 0;
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */
/* ── Animations ───────────────────────────────────────────────────────── */
@keyframes shimmer-sweep {
    0% { left: -150%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

@keyframes soft-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slide-in-up {
    from { transform: translateY(15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes side-border-pulse {
    0% { border-left-color: #0a9396; }
    50% { border-left-color: #59d2d4; }
    100% { border-left-color: #0a9396; }
}

@keyframes gold-border-pulse {
    0% { border-left-color: #996515; }
    50% { border-left-color: #ffd700; }
    100% { border-left-color: #996515; }
}

#ministerAssignmentsSection {
    animation: slide-in-up 0.6s ease-out, side-border-pulse 3s infinite ease-in-out;
}

@media (max-width: 768px) {
    .content {
        padding: 72px 14px 32px;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .qr-guide-grid {
        grid-template-columns: 1fr;
    }

    .roles-spotlight {
        padding: 20px 16px 16px;
    }
}

