/* --- WPFT Donation List Styles --- */
/* --- WPFT Donation Summary Styles --- */
.wpft-donation-summary {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-align: center;
}
.summary-item {
    flex: 1;
    min-width: 180px;
}
.summary-label {
    display: block;
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 5px;
}
.summary-value {
    display: block;
    font-size: 1.4em;
    font-weight: bold;
    color: #d9534f;
}
.wpft-donation-list-container {
    margin: 20px auto;
    max-width: 900px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    border-radius: 4px;
}

.wpft-donation-list-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.wpft-donation-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.wpft-donation-table th,
.wpft-donation-table td {
    padding: 10px 8px;
    border: 1px solid #ddd;
    text-align: left;
}

.wpft-donation-table thead th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.wpft-donation-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.wpft-donation-table tbody tr:hover {
    background-color: #f1f1f1;
}

/* --- Sortable Header Styles --- */
.wpft-donation-table th a {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    padding-right: 15px; /* Space for arrows */
}

/* Create up and down arrows using pseudo-elements */
.wpft-donation-table th a::before,
.wpft-donation-table th a::after {
    content: '';
    position: absolute;
    right: 3px;
    border: 4px solid transparent;
    opacity: 1; /* Default state: barely visible */
    transition: opacity 0.2s ease;
}

/* Up arrow */
.wpft-donation-table th a::before {
    top: 50%;
    margin-top: -10px;
    border-bottom-color: #333;
    border-bottom-color: #d40344;
}

/* Down arrow */
.wpft-donation-table th a::after {
    top: 50%;
    margin-top: 2px;
    border-top-color: #333;
}

/* On hover, make arrows more visible */
.wpft-donation-table th a:hover::before,
.wpft-donation-table th a:hover::after {
    opacity: 0.7;
}

/* Style for the currently sorted column */
.wpft-donation-table th a.sorted.asc::before,
.wpft-donation-table th a.sorted.desc::after {
    opacity: 1; /* Make the active arrow fully visible */
}

/* Make the inactive arrow in a sorted column less visible */
.wpft-donation-table th a.sorted.asc::after,
.wpft-donation-table th a.sorted.desc::before {
    opacity: 0.3;
}