/* Credit Card Payoff Calculator Styles */
.cards-container {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.cards-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cards-header h3 {
    margin: 0;
}

.cards-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-item {
    background: var(--light-gray);
    border-radius: var(--radius);
    padding: 1rem;
    border: 1px solid var(--border);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.card-header h4 {
    margin: 0;
    color: var(--primary);
}

.remove-card {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-card:hover {
    background: rgba(220, 38, 38, 0.1);
}

.card-form .form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.strategy-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.strategy-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-top: 4px solid transparent;
}

.strategy-card.snowball {
    border-top-color: #3b82f6;
}

.strategy-card.avalanche {
    border-top-color: #10b981;
}

.strategy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.strategy-header h4 {
    margin: 0;
}

.strategy-icon {
    font-size: 1.5rem;
}

.strategy-results {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.strategy-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.strategy-result:last-child {
    border-bottom: none;
}

.strategy-result .label {
    font-weight: 500;
    color: var(--text);
}

.strategy-result .value {
    font-weight: 600;
    color: var(--primary);
}

.payoff-timeline {
    margin: 2rem 0;
}

.timeline-container {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 1rem;
    padding-right: 0.5rem;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-point {
    min-width: 100px;
}

.timeline-month {
    font-weight: 600;
    color: var(--primary);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--gray);
}

.timeline-content {
    flex: 1;
}

.timeline-debt {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.progress-bar {
    height: 8px;
    background: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.5s ease;
}

.money-saved .savings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.savings-item {
    background: white;
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.savings-item.highlight {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid var(--primary);
}

.savings-label {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.savings-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.method-explanation {
    background: var(--light-gray);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1rem 0;
}

.snowball-method {
    border-left: 4px solid #3b82f6;
}

.avalanche-method {
    border-left: 4px solid #10b981;
}

/* Responsive */
@media (max-width: 768px) {
    .strategy-comparison {
        grid-template-columns: 1fr;
    }
    
    .card-form .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .money-saved .savings-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}