.donation-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
}

#donationTable {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    min-width: 600px;
}

#donationTable th, #donationTable td {
    padding: 10px;
    border: 1px solid #ddd;
}

#donationTable th {
    background: black;
    color: white;
    text-align: left;
}

#donationTable img {
    border-radius: 8px;
    height: 50px;
    width: 50px;
    object-fit: cover;
}

.donation-total-row {
    background: #f1f5f9;
    font-weight: bold;
}

@media (max-width: 768px) {
    #donationTable th, #donationTable td {
        font-size: 12px;
        padding: 6px;
    }
}

.donor-trigger {
    cursor: pointer;
    color: #2c7be5;
    font-weight: 600;
}

.donor-name:hover {
    text-decoration: underline;
}

/* Modal Background */
.donor-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

/* Modal Box */
.donor-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    padding: 20px;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.donor-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 22px;
    cursor: pointer;
}

/* Donor Card */
.donor-card {
    text-align: center;
}

.donor-card img {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 10px;
}

