/* ==========================================================================
   NIGAMACONNECT ADMIN — REMINDERS & NOTIFICATION ENGINE (PART 8)
   Calendar Lifecycle Cards, Category Glows (Orange, Gold, Violet), Action Logs
   Compatible with Python Server 1 (/api/admin/reminders/*)
   ========================================================================== */

/* ── Content Layout ──────────────────────────────────────────────────── */
.reminders-content {
    flex: 1;
    padding: 32px;
    max-width: 1520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    font-family: var(--nc-font-sans, 'Plus Jakarta Sans', sans-serif);
    color: var(--nc-text-primary, #F8FAFC);
}

/* ── Banner ──────────────────────────────────────────────────────────── */
.reminders-banner {
    background: linear-gradient(135deg, rgba(15, 29, 56, 0.95) 0%, rgba(11, 21, 40, 0.95) 50%, rgba(15, 163, 217, 0.2) 100%);
    border: 1px solid rgba(15, 163, 217, 0.35);
    border-radius: 20px;
    padding: 32px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(15, 163, 217, 0.15);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
}

.banner-text {
    position: relative;
    z-index: 1;
}

.banner-title {
    font-family: var(--nc-font-heading, 'Outfit', sans-serif);
    font-size: 26px;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.banner-subtitle {
    font-size: 14px;
    color: var(--nc-text-secondary, #94A3B8);
    max-width: 620px;
    line-height: 1.6;
    margin: 0;
}

.banner-subtitle strong {
    color: #0FA3D9;
}

.banner-icon {
    font-size: 56px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 16px rgba(15, 163, 217, 0.4));
    animation: gentleFloat 4s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* ── Section Header ──────────────────────────────────────────────────── */
.section-header h3 {
    font-family: var(--nc-font-heading, 'Outfit', sans-serif);
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px 0;
}

/* ── Today & Tomorrow Grids (3 Count Cards) ──────────────────────────── */
.today-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.today-card {
    background: rgba(11, 21, 40, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.today-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

/* 1. Birthday: Sunrise Orange */
.today-card.birthday::after {
    background: linear-gradient(90deg, #FFA24D, #F59E0B);
}
.today-card.birthday:hover {
    border-color: rgba(255, 162, 77, 0.45);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 162, 77, 0.2);
    transform: translateY(-4px);
}
.today-card.birthday .today-card-value {
    color: #FFA24D;
}

/* 2. Anniversary: Vedic Gold */
.today-card.anniversary::after {
    background: linear-gradient(90deg, #F59E0B, #EAB308);
}
.today-card.anniversary:hover {
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5), 0 0 24px rgba(245, 158, 11, 0.2);
    transform: translateY(-4px);
}
.today-card.anniversary .today-card-value {
    color: #F59E0B;
}

/* 3. Remembrance / Condolence: Royal Violet */
.today-card.remembrance::after {
    background: linear-gradient(90deg, #8B5CF6, #A78BFA);
}
.today-card.remembrance:hover {
    border-color: rgba(139, 92, 246, 0.45);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5), 0 0 24px rgba(139, 92, 246, 0.2);
    transform: translateY(-4px);
}
.today-card.remembrance .today-card-value {
    color: #C4B5FD;
}

.today-card-icon {
    font-size: 36px;
    line-height: 1;
}

.today-card-content {
    flex: 1;
}

.today-card-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--nc-text-secondary, #94A3B8);
    margin: 0 0 6px 0;
}

.today-card-value {
    font-family: var(--nc-font-mono, 'JetBrains Mono', monospace);
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 0;
}

.today-send-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    font-family: var(--nc-font-sans, 'Plus Jakarta Sans', sans-serif);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(15, 29, 56, 0.7);
    color: #FFFFFF;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.today-send-btn svg {
    width: 15px;
    height: 15px;
}

.today-send-btn:hover {
    background: #0FA3D9;
    border-color: #0FA3D9;
    box-shadow: 0 4px 16px rgba(15, 163, 217, 0.4);
    transform: translateY(-1px);
}

/* ── Auto Schedule Card & Manual Trigger Grid ────────────────────────── */
.reminders-main-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

.schedule-card,
.manual-card {
    background: rgba(11, 21, 40, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.schedule-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.schedule-card-title,
.manual-card-title {
    font-family: var(--nc-font-heading, 'Outfit', sans-serif);
    font-size: 19px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 6px 0;
}

.schedule-card-desc,
.manual-card-desc {
    font-size: 13.5px;
    color: var(--nc-text-secondary, #94A3B8);
    line-height: 1.55;
    margin: 0;
}

.toggle-wrapper {
    flex-shrink: 0;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    transition: 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: #FFFFFF;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

input:checked + .toggle-slider {
    background: #0FA3D9;
}

input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

.schedule-status-row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 14px 18px;
    background: rgba(15, 29, 56, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.schedule-status-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.7);
}

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

.info-chip {
    padding: 10px 14px;
    background: rgba(15, 29, 56, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    font-size: 13px;
    color: var(--nc-text-secondary, #94A3B8);
    display: flex;
    align-items: center;
    gap: 8px;
}

.send-all-btn {
    width: 100%;
    margin-top: 16px;
    margin-bottom: 14px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0FA3D9 0%, #0284C7 100%);
    color: #FFFFFF;
    font-family: var(--nc-font-sans, 'Plus Jakarta Sans', sans-serif);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 18px rgba(15, 163, 217, 0.4);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.send-all-btn svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    flex-shrink: 0;
    stroke: currentColor;
    display: inline-block;
}

.send-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(15, 163, 217, 0.55);
    background: linear-gradient(135deg, #38BDF8 0%, #0FA3D9 100%);
}

.manual-note {
    font-size: 12px;
    color: #F59E0B;
    margin: 0;
    line-height: 1.5;
}

/* ── Notification Types Info Cards ───────────────────────────────────── */
.notif-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.notif-type-card {
    background: rgba(11, 21, 40, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    backdrop-filter: blur(20px);
}

.notif-type-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: rgba(15, 29, 56, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notif-type-title {
    font-family: var(--nc-font-heading, 'Outfit', sans-serif);
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

.notif-type-desc {
    font-size: 13px;
    color: var(--nc-text-secondary, #94A3B8);
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

.notif-type-desc code {
    background: rgba(15, 163, 217, 0.15);
    color: #38BDF8;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--nc-font-mono, 'JetBrains Mono', monospace);
    font-size: 12px;
}

.notif-type-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.tag {
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    color: var(--nc-text-secondary, #94A3B8);
}

/* ── Action & History Log Cards ──────────────────────────────────────── */
.log-card {
    background: #020617;
    border: 1px solid rgba(15, 163, 217, 0.3);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 16px;
    flex-wrap: wrap;
}

.log-title {
    font-family: var(--nc-font-mono, 'JetBrains Mono', monospace);
    font-size: 15px;
    font-weight: 700;
    color: #38BDF8;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.history-filter-tabs {
    display: inline-flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 3px;
    gap: 4px;
}

.h-filter-btn {
    background: transparent;
    border: none;
    color: var(--nc-text-secondary, #94A3B8);
    font-family: var(--nc-font-body, 'Plus Jakarta Sans', sans-serif);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.h-filter-btn:hover {
    color: #F8FAFC;
    background: rgba(255, 255, 255, 0.05);
}

.h-filter-btn.active {
    background: linear-gradient(135deg, rgba(15, 163, 217, 0.28) 0%, rgba(14, 116, 144, 0.38) 100%);
    color: #38BDF8;
    border: 1px solid rgba(15, 163, 217, 0.45);
    box-shadow: 0 2px 8px rgba(15, 163, 217, 0.25);
}

.h-filter-btn[data-filter="manual"].active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.28) 0%, rgba(126, 34, 206, 0.38) 100%);
    color: #C084FC;
    border: 1px solid rgba(168, 85, 247, 0.45);
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.25);
}

.h-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    font-weight: 700;
    font-family: var(--nc-font-mono, 'JetBrains Mono', monospace);
    background: rgba(255, 255, 255, 0.1);
    padding: 1px 6px;
    border-radius: 10px;
    color: inherit;
}

.log-clear-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--nc-text-secondary, #94A3B8);
    border-radius: 8px;
    padding: 6px 14px;
    font-family: var(--nc-font-mono, 'JetBrains Mono', monospace);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.log-clear-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.log-list {
    max-height: 580px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-family: var(--nc-font-body, 'Plus Jakarta Sans', sans-serif);
    padding-right: 6px;
}

.log-list::-webkit-scrollbar {
    width: 6px;
}
.log-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 6px;
}
.log-list::-webkit-scrollbar-thumb {
    background: rgba(15, 163, 217, 0.35);
    border-radius: 6px;
}
.log-list::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 163, 217, 0.65);
}

.log-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    color: var(--nc-text-muted, #64748B);
    text-align: center;
    font-size: 13.5px;
}

.log-empty svg {
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* ══════════════════════════════════════════════════════════════════════════
   PREMIUM HISTORY RUN CARD TEMPLATE MENU (ZERO SQUISHING / FULL HEIGHT)
   ══════════════════════════════════════════════════════════════════════════ */
.history-run-card {
    flex-shrink: 0 !important;
    min-height: fit-content !important;
    height: auto !important;
    box-sizing: border-box !important;
    background: linear-gradient(135deg, rgba(15, 27, 48, 0.85) 0%, rgba(10, 18, 34, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.history-run-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #10B981;
    border-radius: 4px 0 0 4px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    transition: all 0.25s ease;
}

.history-run-card.manual-run::before {
    background: #A855F7;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.history-run-card.failed::before {
    background: #EF4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.history-run-card:hover {
    background: linear-gradient(135deg, rgba(15, 30, 56, 0.95) 0%, rgba(12, 24, 46, 0.98) 100%);
    border-color: rgba(15, 163, 217, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 24px rgba(15, 163, 217, 0.25);
}

.history-run-card.manual-run:hover {
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 24px rgba(168, 85, 247, 0.25);
}

.history-run-card:hover::before {
    width: 6px;
}

/* Card Header */
.hrc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.hrc-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

.hrc-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(15, 163, 217, 0.15);
    border: 1px solid rgba(15, 163, 217, 0.3);
    box-shadow: 0 4px 12px rgba(15, 163, 217, 0.15);
}

.hrc-icon-badge svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

.hrc-icon-badge.birthday {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.35);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
    color: #F59E0B;
}

.hrc-icon-badge.anniversary {
    background: rgba(236, 72, 153, 0.18);
    border-color: rgba(236, 72, 153, 0.35);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.2);
    color: #EC4899;
}

.hrc-icon-badge.remembrance {
    background: rgba(168, 85, 247, 0.18);
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
    color: #A855F7;
}

.hrc-icon-badge.daily {
    background: rgba(15, 163, 217, 0.18);
    border-color: rgba(15, 163, 217, 0.35);
    box-shadow: 0 4px 12px rgba(15, 163, 217, 0.2);
    color: #38BDF8;
}

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

.hrc-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.hrc-title {
    font-family: var(--nc-font-heading, 'Outfit', sans-serif);
    font-size: 15.5px;
    font-weight: 700;
    color: #F8FAFC;
    margin: 0;
    line-height: 1.3;
}

.hrc-type-pill {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #CBD5E1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.hrc-type-pill.auto {
    background: rgba(15, 163, 217, 0.15);
    color: #38BDF8;
    border-color: rgba(15, 163, 217, 0.3);
}

.hrc-type-pill.manual {
    background: rgba(168, 85, 247, 0.15);
    color: #C084FC;
    border-color: rgba(168, 85, 247, 0.3);
}

.hrc-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--nc-text-secondary, #94A3B8);
}

.hrc-meta svg {
    width: 13px;
    height: 13px;
    color: var(--nc-text-muted, #64748B);
    flex-shrink: 0;
}

.hrc-dot-sep {
    color: var(--nc-text-muted, #64748B);
}

.hrc-rel-time {
    color: #38BDF8;
    font-weight: 600;
}

.hrc-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.hrc-status-badge {
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.18);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.hrc-status-badge.failed {
    background: rgba(239, 68, 68, 0.18);
    color: #EF4444;
    border-color: rgba(239, 68, 68, 0.35);
}

.hrc-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
    animation: hrcPulse 2s infinite ease-in-out;
}

.hrc-status-badge.failed .hrc-pulse-dot {
    background: #EF4444;
    box-shadow: 0 0 8px #EF4444;
}

@keyframes hrcPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

/* Card Body / Metrics Bar */
.hrc-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    width: 100%;
}

.hrc-metrics {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hrc-metric-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 5px 11px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #CBD5E1;
}

.hrc-metric-pill.sent-highlight {
    background: rgba(15, 163, 217, 0.15);
    border-color: rgba(15, 163, 217, 0.35);
    color: #38BDF8;
    font-weight: 700;
}

.hrc-metric-pill.celebrants-pill {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.28);
    color: #34D399;
    font-weight: 600;
}

.hrc-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hrc-category-pill.cat-family {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.25);
    color: #34D399;
}

.hrc-category-pill.cat-relatives {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.25);
    color: #C084FC;
}

.hrc-category-pill.cat-friends {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.25);
    color: #FBBF24;
}

.hrc-subtag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--nc-text-secondary, #94A3B8);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.hrc-subtag.birthday {
    color: #FBBF24;
    border-color: rgba(245, 158, 11, 0.25);
    background: rgba(245, 158, 11, 0.08);
}

.hrc-subtag.anniversary {
    color: #F472B6;
    border-color: rgba(236, 72, 153, 0.25);
    background: rgba(236, 72, 153, 0.08);
}

.hrc-subtag.remembrance {
    color: #C084FC;
    border-color: rgba(168, 85, 247, 0.25);
    background: rgba(168, 85, 247, 0.08);
}

.hrc-subtag.error {
    color: #F87171;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
}

/* Inspect Button */
.hrc-inspect-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #0FA3D9;
    background: rgba(15, 163, 217, 0.12);
    border: 1px solid rgba(15, 163, 217, 0.35);
    border-radius: 8px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.history-run-card:hover .hrc-inspect-btn {
    background: #0FA3D9;
    color: #FFFFFF;
    box-shadow: 0 0 16px rgba(15, 163, 217, 0.55);
    transform: translateX(2px);
}

.hrc-inspect-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.history-run-card:hover .hrc-inspect-btn svg {
    transform: translateX(3px);
}

/* ══════════════════════════════════════════════════════════════════════════
   MANUAL ACTION LOG SLEEK CARD STYLING
   ══════════════════════════════════════════════════════════════════════════ */
.action-log-entry {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: all 0.2s ease;
}

.action-log-entry:hover {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(255, 255, 255, 0.14);
}

.action-log-entry.success {
    border-left: 3px solid #10B981;
}

.action-log-entry.error {
    border-left: 3px solid #EF4444;
}

.action-log-entry.info {
    border-left: 3px solid #0FA3D9;
}

.ale-icon {
    font-size: 18px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ale-body {
    flex: 1;
    min-width: 0;
}

.ale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 3px;
}

.ale-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #F8FAFC;
    margin: 0;
}

.ale-time {
    font-size: 11px;
    color: var(--nc-text-muted, #64748B);
    white-space: nowrap;
}

.ale-msg {
    font-size: 12px;
    color: var(--nc-text-secondary, #94A3B8);
    margin: 0;
    line-height: 1.5;
}

/* ── Toast Notifications ────────────────────────────────────────────── */
.reminders-toast {
    background: rgba(11, 21, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px 18px;
    color: #FFFFFF;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
}

/* ── Responsive Viewports ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .today-grid,
    .notif-types-grid {
        grid-template-columns: 1fr;
    }
    .reminders-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .reminders-content {
        padding: 16px;
    }
    .reminders-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Light Theme Overrides ───────────────────────────────────────────── */
:root[data-theme="light"] .reminders-content {
    color: #0F172A;
}

:root[data-theme="light"] .reminders-banner {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 55%, rgba(15, 163, 217, 0.1) 100%);
    border-color: rgba(15, 163, 217, 0.25);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

:root[data-theme="light"] .reminders-banner .banner-title {
    color: #0F172A;
}

:root[data-theme="light"] .reminders-banner .banner-subtitle {
    color: #475569;
}

:root[data-theme="light"] .section-header h3 {
    color: #0F172A;
}

:root[data-theme="light"] .today-card,
:root[data-theme="light"] .dist-card,
:root[data-theme="light"] .schedule-card,
:root[data-theme="light"] .manual-card,
:root[data-theme="light"] .notif-type-card,
:root[data-theme="light"] .log-card {
    background: #FFFFFF !important;
    border: 1px solid rgba(15, 23, 42, 0.09) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
}

:root[data-theme="light"] .today-card .card-info h4,
:root[data-theme="light"] .dist-header h4,
:root[data-theme="light"] .schedule-card-title,
:root[data-theme="light"] .manual-card-title,
:root[data-theme="light"] .notif-type-title {
    color: #0F172A !important;
}

:root[data-theme="light"] .today-card .card-icon,
:root[data-theme="light"] .today-card-icon {
    background: #F1F5F9 !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

:root[data-theme="light"] .today-card-label {
    color: #64748B !important;
}

:root[data-theme="light"] .today-card.remembrance .today-card-value {
    color: #7C3AED !important;
}

:root[data-theme="light"] .today-send-btn {
    background: rgba(15, 163, 217, 0.1) !important;
    border: 1px solid rgba(15, 163, 217, 0.25) !important;
    color: #0284C7 !important;
}

:root[data-theme="light"] .today-send-btn:hover {
    background: #0284C7 !important;
    color: #FFFFFF !important;
}

:root[data-theme="light"] .schedule-status-row {
    background: #F8FAFC !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

:root[data-theme="light"] .schedule-status-item span {
    color: #475569 !important;
}

:root[data-theme="light"] .schedule-card-desc,
:root[data-theme="light"] .manual-card-desc,
:root[data-theme="light"] .notif-type-desc {
    color: #475569 !important;
}

:root[data-theme="light"] .info-chip {
    background: #F1F5F9 !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    color: #334155 !important;
}

:root[data-theme="light"] .notif-type-tags .tag {
    background: #F1F5F9 !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    color: #475569 !important;
}

:root[data-theme="light"] .manual-note {
    color: #D97706 !important;
}

:root[data-theme="light"] .card-count.birthdays {
    color: #EA580C;
}

:root[data-theme="light"] .card-count.anniversaries {
    color: #D97706;
}

:root[data-theme="light"] .card-count.remembrances {
    color: #7C3AED;
}

:root[data-theme="light"] .dist-item {
    background: #F8FAFC;
    border-color: rgba(15, 23, 42, 0.06);
    color: #1E293B;
}

:root[data-theme="light"] .dist-name {
    color: #0F172A;
}

:root[data-theme="light"] .dist-meta {
    color: #64748B;
}

:root[data-theme="light"] .log-card,
:root[data-theme="light"] .action-log-card {
    background: #FFFFFF !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
}

:root[data-theme="light"] .log-header,
:root[data-theme="light"] .action-log-card .log-header {
    border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}

:root[data-theme="light"] .log-title,
:root[data-theme="light"] .action-log-card .log-title {
    color: #0284C7 !important;
}

:root[data-theme="light"] .log-clear-btn,
:root[data-theme="light"] .action-log-card .log-clear-btn {
    background: #F1F5F9 !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    color: #475569 !important;
}

:root[data-theme="light"] .log-clear-btn:hover {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #DC2626 !important;
}

:root[data-theme="light"] .log-empty {
    color: #64748B !important;
}

:root[data-theme="light"] .history-filter-tabs {
    background: #F1F5F9 !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
}

:root[data-theme="light"] .h-filter-btn {
    color: #475569 !important;
}

:root[data-theme="light"] .h-filter-btn:hover {
    color: #0F172A !important;
    background: rgba(15, 23, 42, 0.05) !important;
}

:root[data-theme="light"] .h-filter-btn.active {
    background: #FFFFFF !important;
    color: #0284C7 !important;
    border-color: rgba(15, 163, 217, 0.4) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
}

:root[data-theme="light"] .h-filter-btn[data-filter="manual"].active {
    background: #FFFFFF !important;
    color: #7E22CE !important;
    border-color: rgba(168, 85, 247, 0.4) !important;
}

:root[data-theme="light"] .h-filter-count {
    background: rgba(15, 23, 42, 0.08) !important;
}

:root[data-theme="light"] .hrc-category-pill {
    background: #F8FAFC !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

:root[data-theme="light"] .hrc-category-pill.cat-family {
    background: rgba(16, 185, 129, 0.08) !important;
    color: #059669 !important;
}

:root[data-theme="light"] .hrc-category-pill.cat-relatives {
    background: rgba(168, 85, 247, 0.08) !important;
    color: #7E22CE !important;
}

:root[data-theme="light"] .hrc-category-pill.cat-friends {
    background: rgba(245, 158, 11, 0.08) !important;
    color: #D97706 !important;
}

:root[data-theme="light"] .history-run-card {
    background: #FFFFFF !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
}

:root[data-theme="light"] .history-run-card:hover {
    background: #F8FAFC !important;
    border-color: rgba(15, 163, 217, 0.4) !important;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08) !important;
}

:root[data-theme="light"] .hrc-title {
    color: #0F172A !important;
}

:root[data-theme="light"] .hrc-type-pill {
    background: #F1F5F9 !important;
    color: #475569 !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
}

:root[data-theme="light"] .hrc-type-pill.auto {
    background: rgba(15, 163, 217, 0.12) !important;
    color: #0284C7 !important;
    border-color: rgba(15, 163, 217, 0.25) !important;
}

:root[data-theme="light"] .hrc-type-pill.manual {
    background: rgba(168, 85, 247, 0.12) !important;
    color: #7E22CE !important;
    border-color: rgba(168, 85, 247, 0.25) !important;
}

:root[data-theme="light"] .hrc-meta {
    color: #64748B !important;
}

:root[data-theme="light"] .hrc-body {
    border-top-color: rgba(15, 23, 42, 0.06) !important;
}

:root[data-theme="light"] .hrc-metric-pill {
    background: #F8FAFC !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    color: #334155 !important;
}

:root[data-theme="light"] .hrc-metric-pill.sent-highlight {
    background: rgba(15, 163, 217, 0.1) !important;
    color: #0284C7 !important;
    border-color: rgba(15, 163, 217, 0.25) !important;
}

:root[data-theme="light"] .hrc-metric-pill.celebrants-pill {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #059669 !important;
    border-color: rgba(16, 185, 129, 0.25) !important;
}

:root[data-theme="light"] .hrc-subtag {
    background: #F1F5F9 !important;
    color: #475569 !important;
    border-color: rgba(15, 23, 42, 0.06) !important;
}

:root[data-theme="light"] .hrc-inspect-btn {
    background: rgba(15, 163, 217, 0.1) !important;
    color: #0284C7 !important;
    border-color: rgba(15, 163, 217, 0.3) !important;
}

:root[data-theme="light"] .history-run-card:hover .hrc-inspect-btn {
    background: #0284C7 !important;
    color: #FFFFFF !important;
}

:root[data-theme="light"] .action-log-entry {
    background: #FFFFFF !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

:root[data-theme="light"] .ale-title {
    color: #0F172A !important;
}

:root[data-theme="light"] .ale-msg {
    color: #475569 !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   DETAILED REMINDER AUDIT LOG MODAL (DARK & LIGHT THEMES)
   ══════════════════════════════════════════════════════════════════════════ */
.reminder-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 12, 26, 0.78);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.reminder-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.reminder-modal-container {
    background: linear-gradient(135deg, rgba(15, 27, 48, 0.98) 0%, rgba(10, 18, 34, 0.98) 100%);
    border: 1px solid rgba(15, 163, 217, 0.3);
    border-radius: 22px;
    width: 100%;
    max-width: 1060px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 30px rgba(15, 163, 217, 0.2);
    overflow: hidden;
    transform: scale(0.96) translateY(12px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.reminder-modal-overlay.active .reminder-modal-container {
    transform: scale(1) translateY(0);
}

/* Header */
.reminder-modal-header {
    padding: 22px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
}

.reminder-modal-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(15, 163, 217, 0.18);
    color: #0FA3D9;
    border: 1px solid rgba(15, 163, 217, 0.35);
    margin-bottom: 6px;
}

.reminder-modal-title {
    font-family: var(--nc-font-heading, 'Outfit', sans-serif);
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 4px 0;
}

.reminder-modal-sub {
    font-size: 13px;
    color: var(--nc-text-secondary, #94A3B8);
    margin: 0;
}

.reminder-modal-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94A3B8;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.reminder-modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #EF4444;
}

.reminder-modal-close-btn svg {
    width: 18px;
    height: 18px;
}

/* KPI Summary Bar */
.reminder-modal-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 16px 28px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-kpi-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-kpi-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--nc-text-secondary, #94A3B8);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.modal-kpi-val {
    font-size: 20px;
    font-weight: 800;
    color: #FFFFFF;
}

.modal-kpi-val.success {
    color: #10B981;
}

/* Master-Detail Split Body */
.reminder-modal-body {
    display: grid;
    grid-template-columns: 340px 1fr;
    flex: 1;
    min-height: 420px;
    max-height: calc(88vh - 220px);
    overflow: hidden;
}

/* Left Pane: Celebrants List */
.reminder-modal-left {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.15);
}

.modal-left-header {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pane-title {
    font-size: 13px;
    font-weight: 700;
    color: #CBD5E1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.modal-search-input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 8px 12px;
    color: #FFFFFF;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
}

.modal-search-input:focus {
    border-color: #0FA3D9;
    box-shadow: 0 0 10px rgba(15, 163, 217, 0.3);
}

.celebrant-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.celebrant-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.celebrant-item:hover {
    background: rgba(15, 163, 217, 0.1);
    border-color: rgba(15, 163, 217, 0.3);
    transform: translateX(3px);
}

.celebrant-item.active {
    background: linear-gradient(135deg, rgba(15, 163, 217, 0.25) 0%, rgba(15, 163, 217, 0.12) 100%);
    border-color: #0FA3D9;
    box-shadow: 0 0 16px rgba(15, 163, 217, 0.25);
}

.celebrant-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(15, 163, 217, 0.2);
    color: #0FA3D9;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.celebrant-name {
    font-size: 14px;
    font-weight: 700;
    color: #F8FAFC;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.celebrant-sub {
    font-size: 12px;
    color: var(--nc-text-secondary, #94A3B8);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.celebrant-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(15, 163, 217, 0.2);
    color: #0FA3D9;
    white-space: nowrap;
}

/* Right Pane: Recipient Breakdown */
.reminder-modal-right {
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
    overflow-y: auto;
    gap: 18px;
    background: rgba(0, 0, 0, 0.05);
}

.selected-celebrant-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.sel-cel-avatar {
    font-size: 32px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(15, 163, 217, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sel-cel-info {
    flex: 1;
}

.sel-cel-name {
    font-family: var(--nc-font-heading, 'Outfit', sans-serif);
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 4px 0;
}

.sel-cel-meta {
    font-size: 13px;
    color: var(--nc-text-secondary, #94A3B8);
    margin: 0 0 8px 0;
}

.sel-cel-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sel-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #E2E8F0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sel-tag.highlight {
    background: rgba(16, 185, 129, 0.18);
    color: #10B981;
    border-color: rgba(16, 185, 129, 0.35);
}

/* Category Tabs */
.recipient-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.recip-tab {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px 16px;
    color: var(--nc-text-secondary, #94A3B8);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.recip-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}

.recip-tab.active {
    background: #0FA3D9;
    border-color: #0FA3D9;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(15, 163, 217, 0.4);
}

.tab-contents-container {
    flex: 1;
    overflow-y: auto;
}

.recip-pane {
    display: none;
}

.recip-pane.active {
    display: block;
}

.recip-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recip-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    transition: all 0.2s ease;
}

.recip-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.recip-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.recip-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.recip-details {
    min-width: 0;
}

.recip-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #F8FAFC;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recip-email {
    font-size: 12px;
    color: var(--nc-text-secondary, #94A3B8);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recip-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.recip-relation-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #94A3B8;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.recip-status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.recip-status-badge.delivered {
    background: rgba(16, 185, 129, 0.18);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.recip-status-badge.in-app-only {
    background: rgba(14, 165, 233, 0.18);
    color: #0EA5E9;
    border: 1px solid rgba(14, 165, 233, 0.35);
}

.recip-status-badge.failed {
    background: rgba(239, 68, 68, 0.18);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.recip-empty {
    padding: 36px 20px;
    text-align: center;
    color: var(--nc-text-secondary, #94A3B8);
    font-size: 13px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

/* Modal Footer */
.reminder-modal-footer {
    padding: 16px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
}

.modal-footer-note {
    font-size: 12px;
    color: var(--nc-text-secondary, #94A3B8);
}

.modal-dismiss-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 8px 18px;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-dismiss-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* ══════════════════════════════════════════════════════════════════════════
   LIGHT THEME OVERRIDES FOR MODAL
   ══════════════════════════════════════════════════════════════════════════ */
:root[data-theme="light"] .reminder-modal-overlay {
    background: rgba(15, 23, 42, 0.6) !important;
}

:root[data-theme="light"] .reminder-modal-container {
    background: #FFFFFF !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25) !important;
}

:root[data-theme="light"] .reminder-modal-header {
    border-bottom-color: rgba(15, 23, 42, 0.08) !important;
    background: #F8FAFC !important;
}

:root[data-theme="light"] .reminder-modal-title {
    color: #0F172A !important;
}

:root[data-theme="light"] .reminder-modal-sub {
    color: #64748B !important;
}

:root[data-theme="light"] .reminder-modal-close-btn {
    background: #F1F5F9 !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    color: #64748B !important;
}

:root[data-theme="light"] .reminder-modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #DC2626 !important;
}

:root[data-theme="light"] .reminder-modal-kpis {
    background: #F8FAFC !important;
    border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}

:root[data-theme="light"] .modal-kpi-card {
    background: #FFFFFF !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

:root[data-theme="light"] .modal-kpi-label {
    color: #64748B !important;
}

:root[data-theme="light"] .modal-kpi-val {
    color: #0F172A !important;
}

:root[data-theme="light"] .reminder-modal-left {
    background: #F8FAFC !important;
    border-right-color: rgba(15, 23, 42, 0.08) !important;
}

:root[data-theme="light"] .modal-left-header {
    border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}

:root[data-theme="light"] .pane-title {
    color: #334155 !important;
}

:root[data-theme="light"] .modal-search-input {
    background: #FFFFFF !important;
    border-color: rgba(15, 23, 42, 0.15) !important;
    color: #0F172A !important;
}

:root[data-theme="light"] .celebrant-item {
    background: #FFFFFF !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

:root[data-theme="light"] .celebrant-item:hover {
    background: #F0F9FF !important;
    border-color: rgba(2, 132, 199, 0.3) !important;
}

:root[data-theme="light"] .celebrant-item.active {
    background: #E0F2FE !important;
    border-color: #0284C7 !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15) !important;
}

:root[data-theme="light"] .celebrant-name {
    color: #0F172A !important;
}

:root[data-theme="light"] .celebrant-sub {
    color: #64748B !important;
}

:root[data-theme="light"] .reminder-modal-right {
    background: #FFFFFF !important;
}

:root[data-theme="light"] .selected-celebrant-card {
    background: #F8FAFC !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

:root[data-theme="light"] .sel-cel-name {
    color: #0F172A !important;
}

:root[data-theme="light"] .sel-cel-meta {
    color: #64748B !important;
}

:root[data-theme="light"] .sel-tag {
    background: #E2E8F0 !important;
    color: #334155 !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

:root[data-theme="light"] .recipient-tabs {
    border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}

:root[data-theme="light"] .recip-tab {
    background: #F1F5F9 !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    color: #475569 !important;
}

:root[data-theme="light"] .recip-tab.active {
    background: #0284C7 !important;
    border-color: #0284C7 !important;
    color: #FFFFFF !important;
}

:root[data-theme="light"] .recip-card {
    background: #F8FAFC !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

:root[data-theme="light"] .recip-card:hover {
    background: #F1F5F9 !important;
    border-color: rgba(2, 132, 199, 0.25) !important;
}

:root[data-theme="light"] .recip-name {
    color: #0F172A !important;
}

:root[data-theme="light"] .recip-email {
    color: #64748B !important;
}

:root[data-theme="light"] .recip-relation-badge {
    background: #E2E8F0 !important;
    color: #475569 !important;
    border-color: rgba(15, 23, 42, 0.06) !important;
}

:root[data-theme="light"] .recip-empty {
    background: #F8FAFC !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    color: #64748B !important;
}

:root[data-theme="light"] .reminder-modal-footer {
    border-top-color: rgba(15, 23, 42, 0.08) !important;
    background: #F8FAFC !important;
}

:root[data-theme="light"] .modal-footer-note {
    color: #64748B !important;
}

:root[data-theme="light"] .modal-dismiss-btn {
    background: #E2E8F0 !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
    color: #0F172A !important;
}

:root[data-theme="light"] .modal-dismiss-btn:hover {
    background: #CBD5E1 !important;
}



/* Responsive modal on mobile */
@media (max-width: 768px) {
    .reminder-modal-body {
        grid-template-columns: 1fr;
        max-height: 60vh;
    }
    .reminder-modal-left {
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .reminder-modal-kpis {
        grid-template-columns: 1fr;
    }
}


