﻿
:root {
    --primary: #d97706;
    --primary-dark: #b45309;
    --accent: #ea580c;
    --bg: #FFFDF9;
    --card-bg: #ffffff;
    --text: #1c1917;
    --muted: #78716c;
    --border: #e7e5e4;
    --emerald: #059669;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', 'Noto Sans Devanagari', -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.topbar {
    background: #451a03;
    color: #fef3c7;
    font-size: 12px;
    padding: 8px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.topbar-badge {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fde68a;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.logo-badge {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, #d97706, #ea580c);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

    .logo-badge span:first-child {
        font-family: 'Rozha One', serif;
        font-size: 20px;
        line-height: 1;
    }

    .logo-badge span:last-child {
        font-size: 8px;
        font-weight: 900;
        letter-spacing: 1px;
    }

.brand-title {
    font-size: 18px;
    font-weight: 800;
    color: #1c1917;
    line-height: 1.2;
}

.brand-sub {
    font-size: 11px;
    color: #78716c;
    font-family: 'Noto Sans Devanagari', sans-serif;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

    .nav-links a {
        color: #44403c;
        text-decoration: none;
        font-size: 13px;
        font-weight: 600;
        transition: color 0.2s;
    }

        .nav-links a:hover, .nav-links a.active {
            color: var(--primary);
        }

.nav-donate-pill {
    background: linear-gradient(135deg, #d97706, #ea580c);
    color: #ffffff !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid var(--border);
    font-size: 20px;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

@media (max-width: 980px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        align-items: flex-start;
        gap: 12px;
    }

        .nav-links.show {
            display: flex;
        }
}

.hero {
    background: linear-gradient(135deg, #1c1917, #3b1e08);
    color: #fff;
    padding: 55px 24px;
    text-align: center;
}

.hero-tag {
    background: rgba(245, 158, 11, 0.25);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fde68a;
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero h1 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero p {
    font-size: 16px;
    color: #fed7aa;
    max-width: 700px;
    margin: 0 auto;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* Search & Filter Controls */
.controls-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.search-box {
    flex: 1;
    min-width: 260px;
    position: relative;
}

    .search-box input {
        width: 100%;
        padding: 10px 14px 10px 38px;
        border-radius: 10px;
        border: 1.5px solid #d6d3d1;
        font-size: 14px;
        font-family: inherit;
    }

        .search-box input:focus {
            outline: none;
            border-color: var(--primary);
        }

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #a8a29e;
}

.filter-select {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1.5px solid #d6d3d1;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
}

/* Donor Table */
.donor-table-wrap {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

thead {
    background: #fafaf9;
    border-bottom: 1.5px solid var(--border);
}

th {
    padding: 14px 18px;
    font-weight: 700;
    color: #44403c;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

td {
    padding: 14px 18px;
    border-bottom: 1px solid #f5f5f4;
    color: #292524;
}

tr:hover td {
    background: #fffbeb;
}

.amount-cell {
    font-family: monospace;
    font-weight: 800;
    font-size: 15px;
    color: #047857;
}

.receipt-badge {
    font-family: monospace;
    background: #f5f5f4;
    border: 1px solid #e7e5e4;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    color: #57534e;
}

.tier-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.tier-patron {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.tier-guardian {
    background: #e0e7ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

.tier-mitra {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.empty-state {
    padding: 40px;
    text-align: center;
    color: #78716c;
    display: none;
}

.footer {
    background: #1c1917;
    color: #d6d3d1;
    padding: 50px 24px 24px;
    font-size: 13px;
    border-top: 4px solid var(--primary);
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 32px;
}

@media (max-width: 860px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 500px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 16px;
    font-weight: 700;
}

.footer ul {
    list-style: none;
}

    .footer ul li {
        margin-bottom: 8px;
    }

        .footer ul li a {
            color: #a8a29e;
            text-decoration: none;
            transition: color 0.2s;
        }

            .footer ul li a:hover {
                color: #f59e0b;
            }

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid #292524;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #78716c;
}



.donor-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding: 20px 0;
}

.donor-card {
    background: #fff;
    border: 1px solid #f0e4cc;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(120, 53, 15, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

    .donor-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 24px rgba(120, 53, 15, 0.12);
    }

.donor-card-header {
    padding: 16px;
    background: linear-gradient(135deg, #fffbeb, #fff7ed);
    border-bottom: 1px solid #fde68a;
}

.donor-label {
    color: #92400e;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 7px;
}

.donor-name {
    color: #292524;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
    margin: 0;
}

.donor-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.donor-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.donor-info-label {
    font-size: 11px;
    color: #78716c;
    font-weight: 600;
}

.donor-amount {
    color: #047857;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.donor-date {
    color: #44403c;
    font-size: 13px;
    font-weight: 500;
}

.receipt-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
    padding: 11px 12px;
    background: #15803d;
    color: #fff;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease;
}

    .receipt-btn:hover {
        background: #166534;
        color: #fff;
    }

.donor-empty {
    grid-column: 1 / -1;
    padding: 45px 20px;
    background: #fafaf9;
    border: 1px dashed #d6d3d1;
    border-radius: 14px;
    color: #78716c;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .donor-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .donor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .donor-card-header,
    .donor-card-body {
        padding: 13px;
    }

    .donor-amount {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .donor-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .donor-card-header,
    .donor-card-body {
        padding: 16px;
    }

    .donor-name {
        font-size: 16px;
    }

    .donor-amount {
        font-size: 24px;
    }

    .receipt-btn {
        padding: 13px;
        font-size: 13px;
    }
}
