/* Enhanced Donation System Styling */
:root {
    --primary-green: #2ecc71;
    --dark-green: #27ae60;
    --light-green: #85e085;
    --primary-red: #e74c3c;
    --dark-red: #c0392b;
    --primary-yellow: #e74c3c;
    --dark-yellow: #27ae60;
    --background-gray: #f8f9fa;
    --text-color: #333;
    --white: #ffffff;
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-gray);
    color: var(--text-color);
}

.donation-container {
    max-width: 700px;
    margin: 20px auto;
    padding: 25px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.donation-container:hover {
    transform: scale(1.02);
}

.donation-amounts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
}

.amount-btn {
    background: var(--primary-yellow);
    color: var(--text-color);
    border: none;
    padding: 14px 22px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.amount-btn:hover {
    background: var(--dark-yellow);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.amount-btn.active {
    background: var(--dark-yellow);
    box-shadow: 0 0 8px rgba(241, 196, 15, 0.6);
}

.custom-amount input {
    width: 100%;
    padding: 10px;
    border: 2px solid; /* Warna default */
    border-radius: 10px;
    font-size: 12px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.custom-amount input:focus {
    border-color: #27ae60; /* Warna border saat dipilih */
    outline: none; /* Menghilangkan outline bawaan browser */
}


.donation-submit {
    background: var(--primary-yellow);
    color: var(--text-color);
    border: none;
    padding: 14px 30px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    width: 100%;
    margin-top: 20px; /* Tambahkan jarak ke bawah */
}


.donation-submit:hover {
    background: var(--dark-yellow);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.donation-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.top-donors {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    width: 100%;
    max-width: 500px;
    transition: transform 0.3s ease;
}

.top-donors:hover {
    transform: scale(1.03);
}

.top-donors h3 {
    color: var(--primary-yellow);
    border-bottom: 4px solid var(--dark-yellow);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.top-donors .donors-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
}

.top-donors .donors-list li {
    background: var(--light-green);
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-color);
    border-left: 5px solid var(--dark-green);
    text-align: center;
}

.recent-donations {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    width: 100%;
    max-width: 700px;
    transition: transform 0.3s ease;
}

.recent-donations:hover {
    transform: scale(1.03);
}

.recent-donations h3 {
    color: var(--primary-yellow);
    border-bottom: 4px solid var(--dark-yellow);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.recent-donations-list {
    list-style: none;
    padding: 0;
}

.recent-donations-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.3s ease;
    font-weight: 600;
    border-radius: 6px;
}

.recent-donations-list li:hover {
    background: rgba(241, 196, 15, 0.15);
}

.donor-name {
    font-weight: bold;
    color: var(--text-color);
}

.donation-amount {
    font-weight: bold;
    color: var(--primary-red);
}

.donation-date {
    font-size: 0.9em;
    color: #777;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .donation-section {
        flex-direction: column;
    }

    .top-donors, .recent-donations {
        width: 100%;
        min-width: auto;
    }

    .donation-amounts {
        flex-direction: column;
    }

    .amount-btn {
        width: 100%;
    }
}

/* Accessibility & Focus */
*:focus {
    outline: 3px solid var(--primary-yellow);
    outline-offset: 3px;
}