/* ===== ESTILOS PARA FAVORITOS ===== */
.ranking-name-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: space-between;
}



/* ===== PÁGINA DE DOAÇÃO ===== */
.donation-page {
    min-height: calc(100vh - 80px);
    padding: 3rem 1rem;
    background-color: var(--bg-light);
}

.donation-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.candidate-info {
    text-align: center;
    margin-bottom: 2rem;
}

.candidate-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    margin-bottom: 1rem;
    object-fit: cover;
}

.candidate-info h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.candidate-role {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.candidate-party {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.donation-form h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: center;
}

.amount-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.amount-btn {
    padding: 1rem;
    border: 2px solid var(--border-color);
    background-color: var(--bg-light);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.amount-btn:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
}

.amount-btn.active {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: white;
}

.custom-amount {
    margin-bottom: 2rem;
}

.custom-amount label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.custom-amount input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--bg-light);
    color: var(--text-dark);
    transition: border-color 0.3s ease;
}

.custom-amount input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.donate-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

/* ===== GRÁFICOS ALEATÓRIOS ===== */
.sparkline svg {
    width: 100%;
    height: auto;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .amount-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .amount-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .donation-container {
        padding: 1.5rem;
    }
    
    .candidate-info h1 {
        font-size: 1.5rem;
    }
}
