@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&display=swap');

/* Sacred Palette */
:root {
    --temple-bg: #FFF8ED;
    --temple-card: #FFFCF5;
    --temple-border: #E8C97A;
    --temple-saffron: #C67C10;
    --temple-gold: #B8860B;
    --temple-dark: #3D1F00;
    --temple-muted: #7A5C35;
    --temple-accent: #A0520A;
    --temple-accent-light: #FDF3DC;
}

/* Page background */
.content {
    background-color: var(--temple-bg) !important;
}

/* Section labels */
.dash-section-title {
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--temple-saffron);
    margin-bottom: 0.6rem;
}

/* Page title styling */
.page-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--temple-dark);
    letter-spacing: 0.02em;
    margin-bottom: 0;
}

/* Ornamental section divider — rangoli-inspired threshold */
.temple-divider {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.25rem 0 1rem;
}
.temple-divider::before,
.temple-divider::after {
    content: '';
    flex: 1;
    height: 1px;
}
.temple-divider::before {
    background: linear-gradient(to right, transparent, var(--temple-border));
}
.temple-divider::after {
    background: linear-gradient(to left, transparent, var(--temple-border));
}
.temple-divider-gem {
    width: 7px;
    height: 7px;
    background: var(--temple-saffron);
    transform: rotate(45deg);
    flex-shrink: 0;
    box-shadow: 0 0 0 2px var(--temple-accent-light), 0 0 0 3px var(--temple-border);
}

/* Action cards */
.btn-action-card {
    transition: all 0.25s ease;
    border: 1px solid var(--temple-border) !important;
    border-left: 3px solid var(--temple-saffron) !important;
    background-color: var(--temple-card);
}
.btn-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 99, 26, 0.14) !important;
    border-left-color: var(--temple-gold) !important;
}
.btn-action-card h6 {
    color: var(--temple-dark) !important;
}
.btn-action-card .fa-chevron-right {
    color: var(--temple-saffron) !important;
}
.btn-action-card small.text-muted {
    color: var(--temple-muted) !important;
}

/* Seva stat tiles — value-first design with per-tile accent */
.seva-stat-tile {
    --tile-accent: var(--temple-saffron);
    --tile-tint: rgba(198, 124, 16, 0.06);
    position: relative;
    background: var(--temple-card);
    border: 1px solid rgba(184, 134, 11, 0.22);
    border-bottom: 3px solid var(--tile-accent);
    border-radius: 0.5rem;
    padding: 1rem 1rem 0.8rem;
    overflow: hidden;
    height: 100%;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.seva-stat-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, var(--tile-tint) 0%, transparent 65%);
    pointer-events: none;
}
.seva-stat-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(184, 99, 26, 0.15) !important;
}
.tile-watermark-icon {
    position: absolute;
    top: 0.75rem;
    right: 0.85rem;
    font-size: 1.6rem;
    color: var(--tile-accent);
    opacity: 0.13;
    pointer-events: none;
    z-index: 0;
}
.tile-value {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--temple-dark);
    line-height: 1.2;
    margin-bottom: 0.28rem;
    letter-spacing: -0.01em;
}
.tile-currency {
    font-size: 0.8em;
    font-weight: 600;
    opacity: 0.7;
    margin-right: 1px;
    vertical-align: baseline;
}
.tile-label {
    position: relative;
    z-index: 1;
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--temple-muted);
}

/* Legacy stat-card kept for non-overview cards */
.stat-card {
    transition: all 0.25s ease;
    border: 1px solid var(--temple-border) !important;
    border-top: 3px solid var(--temple-saffron) !important;
    background-color: var(--temple-card);
    position: relative;
    overflow: hidden;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(184, 99, 26, 0.13) !important;
}
.stat-card h4 {
    color: var(--temple-dark);
    font-weight: 700;
}
.stat-card small {
    color: var(--temple-muted) !important;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

/* Generic cards (chart, table) */
.card.border-0.shadow-sm,
.card.border-0.shadow {
    border: 1px solid var(--temple-border) !important;
    background-color: var(--temple-card);
    box-shadow: 0 2px 10px rgba(184, 134, 11, 0.07) !important;
}

/* Card section headings */
.card h6.fw-bold {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--temple-dark);
}

/* Icon shapes — all remapped to temple saffron palette */
.icon-shape {
    border-radius: 0.75rem !important;
    padding: 0.75rem;
}

.stat-icon {
    width: 3.25rem;
    height: 3.25rem;
    min-width: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-size: 1.1rem;
}

.icon-shape-primary,
.icon-shape-tertiary,
.icon-shape-indigo {
    color: var(--temple-saffron) !important;
    background-color: rgba(198, 124, 16, 0.14) !important;
}
.icon-shape-success {
    color: #7B5000 !important;
    background-color: rgba(198, 148, 16, 0.15) !important;
}
.icon-shape-secondary {
    color: var(--temple-accent) !important;
    background-color: rgba(160, 82, 10, 0.14) !important;
}
.icon-shape-info {
    color: #8B4513 !important;
    background-color: rgba(139, 69, 19, 0.14) !important;
}
.icon-shape-warning {
    color: #8B5E00 !important;
    background-color: rgba(200, 155, 30, 0.16) !important;
}

/* Chart filter buttons */
.chart-filter-btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-color: var(--temple-border) !important;
    color: var(--temple-muted) !important;
}
.chart-filter-btn:hover {
    background-color: rgba(198, 124, 16, 0.08);
    color: var(--temple-saffron) !important;
}
.chart-filter-btn.active {
    background-color: var(--temple-saffron) !important;
    color: #fff !important;
    border-color: var(--temple-saffron) !important;
}

/* ========================================
   DONATION CHART — Sacred Saffron Theme
   ======================================== */

/* Override Chartist series-a to use primary saffron */
.ct-series-a .ct-point,
.ct-series-a .ct-line,
.ct-series-a .ct-bar,
.ct-series-a .ct-slice-donut {
    stroke: var(--temple-saffron) !important;
}

.ct-series-a .ct-slice-pie,
.ct-series-a .ct-slice-donut-solid,
.ct-series-a .ct-area {
    fill: var(--temple-saffron) !important;
}

/* Smoother grid lines */
.ct-grid {
    stroke: rgba(232, 201, 122, 0.25) !important;
    stroke-dasharray: 4px 4px !important;
}

/* Axis labels — warm brown tone */
.ct-label {
    color: var(--temple-muted) !important;
    font-size: 0.68rem !important;
}

/* Chart point dots — larger, glowing */
.ct-point {
    stroke-width: 8px !important;
    stroke-linecap: round !important;
    filter: drop-shadow(0 0 3px rgba(198, 124, 16, 0.35));
    transition: stroke-width 0.2s ease;
}

/* Chart line — thicker with glow */
.ct-line {
    stroke-width: 3px !important;
    filter: drop-shadow(0 2px 6px rgba(198, 124, 16, 0.25));
}

/* Area fill — warm gradient via CSS */
.ct-area {
    fill-opacity: 0.15 !important;
}

/* Chart entry animation */
@keyframes chartReveal {
    from {
        stroke-dashoffset: 2000;
        opacity: 0;
    }
    to {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

.ct-series-a .ct-line {
    stroke-dasharray: 2000;
    animation: chartReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes chartFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.ct-series-a .ct-area {
    animation: chartFadeIn 0.8s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ct-series-a .ct-point {
    animation: chartFadeIn 0.5s 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Tooltip styling */
.chartist-tooltip {
    background: var(--temple-dark) !important;
    color: #fff !important;
    border-radius: 0.5rem !important;
    padding: 0.5rem 0.85rem !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 24px rgba(61, 31, 0, 0.25) !important;
    border: 1px solid var(--temple-saffron) !important;
    pointer-events: none;
}

.chartist-tooltip::after {
    border-top-color: var(--temple-dark) !important;
}

/* Chart card hover glow */
#donationChart {
    position: relative;
}

#donationChart::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 60px;
    background: radial-gradient(ellipse at center bottom, rgba(198, 124, 16, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Chart card inner glow */
#donationChart::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 5%, rgba(198, 124, 16, 0.15) 50%, transparent 95%);
    border-radius: 0.5rem 0.5rem 0 0;
    z-index: 0;
    pointer-events: none;
}

/* ========================================
   PURPOSE BREAKDOWN CHART — Multi-line
   ======================================== */

.purpose-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 0.75rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(232, 201, 122, 0.2);
}

.purpose-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--temple-muted);
    letter-spacing: 0.02em;
}

.purpose-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Purpose chart point hover */
.purpose-chart .ct-point {
    transition: stroke-width 0.15s ease;
}
.purpose-chart:hover .ct-point {
    stroke-width: 6px !important;
}

/* ========================================
   TABLE STYLING — Sacred Temple Theme
   ======================================== */

/* Table Container */
.table-responsive {
    border-radius: 0.5rem;
    overflow-x: auto;
}

/* Base Table */
.table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

/* Table Header */
.table thead th,
.table .thead-light th,
.table thead td {
    background: linear-gradient(180deg, var(--temple-accent-light) 0%, #FAF0DC 100%) !important;
    color: var(--temple-dark) !important;
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--temple-border) !important;
    padding: 0.875rem 1rem;
    vertical-align: middle;
    white-space: nowrap;
    position: relative;
}

/* Decorative bottom accent on header */
.table thead th::after,
.table .thead-light th::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--temple-saffron), transparent);
    opacity: 0.4;
}

/* Table Body */
.table tbody td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(232, 201, 122, 0.2) !important;
    color: var(--temple-dark);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

/* Zebra striping — subtle warm tone */
.table tbody tr:nth-child(even) {
    background-color: rgba(253, 243, 220, 0.3) !important;
}

/* Row hover effect */
.table-hover tbody tr:hover,
.table tbody tr:hover {
    background-color: rgba(253, 243, 220, 0.6) !important;
    box-shadow: inset 3px 0 0 var(--temple-saffron);
}

/* First row border radius */
.table tbody tr:first-child td:first-child {
    border-top-left-radius: 0.375rem;
}
.table tbody tr:first-child td:last-child {
    border-top-right-radius: 0.375rem;
}

/* Last row border radius */
.table tbody tr:last-child td {
    border-bottom: none !important;
}
.table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 0.375rem;
}
.table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 0.375rem;
}

/* Selected/Active row */
.table tbody tr.active,
.table tbody tr.selected {
    background-color: rgba(198, 124, 16, 0.12) !important;
    box-shadow: inset 3px 0 0 var(--temple-gold);
}

/* Table Links */
.table a {
    color: var(--temple-saffron) !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.table a:hover {
    color: var(--temple-gold) !important;
    text-decoration: underline;
}

/* Table Actions Column */
.table .btn-group,
.table .btn-link,
.table td .action-btns {
    gap: 0.25rem;
}

.table .action-btns .btn,
.table td > a > .btn,
.table td > .btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

/* Table Badge/Status styling */
.table .badge {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.65rem;
    border-radius: 9999px;
}

.table .badge-success {
    background-color: rgba(123, 94, 0, 0.12) !important;
    color: #7B5E00 !important;
    border: 1px solid rgba(232, 201, 122, 0.5);
}

.table .badge-warning {
    background-color: rgba(200, 155, 30, 0.15) !important;
    color: #8B5E00 !important;
    border: 1px solid rgba(200, 155, 30, 0.4);
}

.table .badge-danger {
    background-color: rgba(160, 82, 10, 0.12) !important;
    color: #A0520A !important;
    border: 1px solid rgba(232, 168, 122, 0.5);
}

.table .badge-info {
    background-color: rgba(139, 69, 19, 0.12) !important;
    color: #8B4513 !important;
    border: 1px solid rgba(139, 69, 19, 0.3);
}

.table .badge-secondary {
    background-color: var(--temple-accent-light) !important;
    color: var(--temple-muted) !important;
    border: 1px solid var(--temple-border);
}

/* Table with Card wrapper */
.card .table {
    border-radius: 0.5rem;
}

.card .table td,
.card .table th {
    border-color: rgba(232, 201, 122, 0.2) !important;
}

/* Table Footer / Pagination area */
.card .pagination {
    margin-bottom: 0;
}

.card .page-link {
    border-color: var(--temple-border) !important;
    color: var(--temple-saffron) !important;
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    transition: all 0.2s ease;
}

.card .page-link:hover {
    background-color: rgba(198, 124, 16, 0.08) !important;
    border-color: var(--temple-saffron) !important;
    color: var(--temple-gold) !important;
}

.card .page-item.active .page-link {
    background-color: var(--temple-saffron) !important;
    border-color: var(--temple-saffron) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(198, 124, 16, 0.25);
}

/* Table Empty State */
.table tbody tr td.text-center,
.table tbody tr td[colspan] {
    padding: 2rem 1rem;
    color: var(--temple-muted);
    font-style: italic;
}

/* Table Loading State */
.table-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--temple-muted);
}

.table-loading::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--temple-border);
    border-top-color: var(--temple-saffron);
    border-radius: 50%;
    animation: temple-spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

@keyframes temple-spin {
    to { transform: rotate(360deg); }
}

/* Table Row Actions Menu */
.table .dropdown-menu {
    border: 1px solid var(--temple-border);
    box-shadow: 0 4px 20px rgba(184, 134, 11, 0.15);
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.table .dropdown-menu .dropdown-item {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    color: var(--temple-dark);
    transition: all 0.15s ease;
}

.table .dropdown-menu .dropdown-item:hover {
    background-color: rgba(198, 124, 16, 0.08);
    color: var(--temple-saffron);
}

.table .dropdown-menu .dropdown-item.text-danger {
    color: #A0520A !important;
}

.table .dropdown-menu .dropdown-item.text-danger:hover {
    background-color: rgba(160, 82, 10, 0.08);
}

/* Table Search Input inside card */
.card .input-group {
    max-width: 280px;
}

/* Table Record Count / Info */
.table-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    font-size: 0.8rem;
    color: var(--temple-muted);
    border-top: 1px solid rgba(232, 201, 122, 0.2);
}

/* Table Sort Icons */
.table thead th[data-sort] {
    cursor: pointer;
    user-select: none;
}

.table thead th[data-sort]:hover {
    background: linear-gradient(180deg, #FAF0DC 0%, var(--temple-accent-light) 100%) !important;
}

.table thead th[data-sort]::before {
    content: '\f0dc';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 0.4rem;
    font-size: 0.6rem;
    opacity: 0.4;
}

/* Table Action Buttons — Icon-only */
.table .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.table .btn-icon.btn-outline-primary {
    color: var(--temple-saffron);
    border-color: var(--temple-border);
}

.table .btn-icon.btn-outline-primary:hover {
    background-color: var(--temple-saffron);
    border-color: var(--temple-saffron);
    color: #fff;
}

.table .btn-icon.btn-outline-danger {
    color: #A0520A;
    border-color: rgba(232, 168, 122, 0.4);
}

.table .btn-icon.btn-outline-danger:hover {
    background-color: #A0520A;
    border-color: #A0520A;
    color: #fff;
}

.table .btn-icon.btn-outline-success {
    color: #7B5E00;
    border-color: rgba(232, 201, 122, 0.5);
}

.table .btn-icon.btn-outline-success:hover {
    background-color: #7B5E00;
    border-color: #7B5E00;
    color: #fff;
}

/* Table Row Number */
.table .row-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    background-color: var(--temple-accent-light);
    color: var(--temple-muted);
    border-radius: 0.375rem;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Table Cell Utilities */
.table .cell-nowrap {
    white-space: nowrap;
}

.table .cell-truncate {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table .cell-number {
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.table .cell-bold {
    font-weight: 600;
    color: var(--temple-dark);
}

/* Table with Card wrapper — enhanced */
.card .table-responsive {
    border: none;
}

.card .table {
    border-radius: 0;
}

/* Table Container Shadow Enhancement */
.table-responsive + .pagination,
.table-responsive ~ nav {
    margin-top: 1rem;
}

/* Responsive table improvements */
@media (max-width: 768px) {
    .table-responsive {
        border: 1px solid var(--temple-border);
        border-radius: 0.5rem;
    }
    
    .table thead th,
    .table .thead-light th {
        font-size: 0.6rem;
        padding: 0.625rem 0.5rem;
    }
    
    .table tbody td {
        font-size: 0.8rem;
        padding: 0.625rem 0.5rem;
    }
    
    .table .btn-icon {
        font-size: 0.7rem;
    }
}

/* Donation status badges — refined pill design */
.donation-status-paid,
.donation-status-pending,
.donation-status-partial,
.status-paid,
.status-pending,
.status-partial,
.status-active,
.status-inactive {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: capitalize;
    line-height: 1.4;
    white-space: nowrap;
}

.donation-status-paid::before,
.status-paid::before,
.status-active::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
}

.donation-status-pending::before,
.status-pending::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    animation: temple-pulse 1.5s ease-in-out infinite;
}

@keyframes temple-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.donation-status-paid,
.status-paid {
    background-color: rgba(123, 94, 0, 0.1);
    color: #7B5E00;
    border: 1px solid rgba(232, 201, 122, 0.5);
}

.donation-status-pending,
.status-pending {
    background-color: rgba(160, 82, 10, 0.1);
    color: #A0520A;
    border: 1px solid rgba(232, 168, 122, 0.4);
}

.donation-status-partial,
.status-partial {
    background-color: rgba(92, 64, 0, 0.08);
    color: #5C4000;
    border: 1px solid rgba(212, 176, 96, 0.5);
}

.status-active {
    background-color: rgba(123, 94, 0, 0.1);
    color: #7B5E00;
    border: 1px solid rgba(232, 201, 122, 0.5);
}

.status-inactive {
    background-color: rgba(120, 120, 120, 0.1);
    color: #666;
    border: 1px solid rgba(180, 180, 180, 0.4);
}

.status-inactive::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    opacity: 0.5;
}

/* View all / outline buttons */
.btn-outline-secondary {
    border-color: var(--temple-border) !important;
    color: var(--temple-saffron) !important;
}
.btn-outline-secondary:hover {
    background-color: var(--temple-saffron) !important;
    color: #fff !important;
    border-color: var(--temple-saffron) !important;
}

/* Primary buttons */
.btn-gray-800 {
    background-color: var(--temple-saffron) !important;
    border-color: var(--temple-saffron) !important;
    color: #fff !important;
}
.btn-gray-800:hover {
    background-color: var(--temple-gold) !important;
    border-color: var(--temple-gold) !important;
    color: #fff !important;
}

/* Breadcrumb styling */
.breadcrumb-dark {
    background-color: transparent !important;
}
.breadcrumb-dark .breadcrumb-item a {
    color: var(--temple-muted) !important;
}
.breadcrumb-dark .breadcrumb-item.active {
    color: var(--temple-saffron) !important;
}
.breadcrumb-dark .breadcrumb-item + .breadcrumb-item::before {
    color: var(--temple-border) !important;
}

/* Form controls */
.form-control:focus,
.form-select:focus {
    border-color: var(--temple-border) !important;
    box-shadow: 0 0 0 0.2rem rgba(198, 124, 16, 0.15) !important;
}

.input-group-text {
    background-color: var(--temple-accent-light) !important;
    border-color: var(--temple-border) !important;
    color: var(--temple-muted) !important;
}

/* Alert styling */
.alert-success {
    background-color: #FDF3DC !important;
    border-color: #E8C97A !important;
    color: #7B5E00 !important;
}

.alert-danger {
    background-color: #FFF0E0 !important;
    border-color: #E8A87A !important;
    color: #A0520A !important;
}

/* Pagination */
.page-link {
    color: var(--temple-saffron) !important;
    border-color: var(--temple-border) !important;
}
.page-item.active .page-link {
    background-color: var(--temple-saffron) !important;
    border-color: var(--temple-saffron) !important;
    color: #fff !important;
}

/* H1 page headings */
h1.h4 {
    color: var(--temple-dark);
    font-family: 'Cinzel', serif;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* List group items */
.list-group-item {
    border-color: rgba(232, 201, 122, 0.25) !important;
}

/* Badge styling */
.badge {
    font-weight: 500;
}

/* ========================================
   FORM SECTION STYLING — Sacred Temple
   ======================================== */

/* Form Section Container */
.form-section {
    background: var(--temple-card);
    border: 1px solid rgba(232, 201, 122, 0.25);
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    transition: border-color 0.2s ease;
}

.form-section:hover {
    border-color: rgba(232, 201, 122, 0.45);
}

/* Form Section Header */
.form-section-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(232, 201, 122, 0.2);
}

.form-section-header h5 {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--temple-saffron);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
}

/* Section Icon Box */
.form-section-header .section-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 0.375rem;
    background: linear-gradient(135deg, var(--temple-accent-light) 0%, #FAF0DC 100%);
    border: 1px solid rgba(232, 201, 122, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--temple-saffron);
    font-size: 0.7rem;
}

/* Form Label — refined */
.form-section .form-label,
.form-section label,
.form .form-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--temple-muted);
    letter-spacing: 0.03em;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

/* Required asterisk */
.form-section .form-label .text-danger,
.form-section label .text-danger {
    font-weight: 700;
}

/* Form Control — refined borders */
.form-section .form-control,
.form-section .form-select {
    border-color: rgba(232, 201, 122, 0.35);
    border-radius: 0.375rem;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-section .form-control:focus,
.form-section .form-select:focus {
    border-color: var(--temple-saffron) !important;
    box-shadow: 0 0 0 0.15rem rgba(198, 124, 16, 0.12) !important;
}

/* Placeholder color */
.form-section .form-control::placeholder {
    color: rgba(122, 92, 53, 0.4);
}

/* Required Fields Legend */
.required-legend {
    font-size: 0.72rem;
    color: var(--temple-muted);
    margin-bottom: 1.25rem;
    padding: 0.6rem 0.85rem;
    background: linear-gradient(135deg, var(--temple-accent-light) 0%, #FAF0DC 100%);
    border-radius: 0.375rem;
    border-left: 3px solid var(--temple-saffron);
    line-height: 1.4;
}

.required-legend .text-danger {
    font-weight: 700;
}

/* Checkbox / Switch — Sacred theme */
.form-section .form-check {
    padding-left: 1.75rem;
    margin-bottom: 0.5rem;
}

.form-section .form-check-input {
    border-color: var(--temple-border);
    width: 1.1em;
    height: 1.1em;
    margin-top: 0.15em;
}

.form-section .form-check-input:checked {
    background-color: var(--temple-saffron);
    border-color: var(--temple-saffron);
}

.form-section .form-check-input:focus {
    border-color: var(--temple-saffron);
    box-shadow: 0 0 0 0.15rem rgba(198, 124, 16, 0.15);
}

.form-section .form-check-label {
    font-size: 0.8rem;
    color: var(--temple-dark);
    font-weight: 500;
}

/* Switch styling */
.form-section .form-switch .form-check-input {
    width: 2.2em;
    height: 1.2em;
}

/* Inline radio / checkbox group */
.form-section .form-check-inline {
    margin-right: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Error message under field */
.form-section .text-danger,
.form-section .invalid-feedback {
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

/* Section divider — thin line between sections */
.form-section + .form-section {
    margin-top: 0;
}

/* Form Submit Area */
.form-submit-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(232, 201, 122, 0.2);
}

/* Donation form special: member search highlight */
.form-section .select2-container--default .select2-selection--single {
    border-color: rgba(232, 201, 122, 0.35);
    border-radius: 0.375rem;
    height: 38px;
    padding: 0.35rem 0.5rem;
}

.form-section .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--temple-dark);
    font-size: 0.85rem;
    line-height: 1.5;
}

.form-section .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

/* Collapsible section (optional future use) */
.form-section-header[data-toggle="collapse"] {
    cursor: pointer;
}

.form-section-header[data-toggle="collapse"]:hover .section-icon {
    background: var(--temple-saffron);
    color: #fff;
    border-color: var(--temple-saffron);
}
