/* Custom styles for Mortgage Calculator */
.card {
    border-radius: 12px;
    overflow: hidden;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.input-group-text {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.table th {
    font-weight: 600;
    color: #495057;
    border-top: none;
}

.table td, .table th {
    padding: 0.75rem 1rem;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.alert {
    border-radius: 8px;
    border: none;
}

/* Custom chart styling */
#paymentChart {
    max-height: 200px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem !important;
    }
    
    .row.text-center .col-6 {
        padding: 0.5rem;
    }
}

/* Animation for results */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#totalPayment {
    animation: fadeIn 0.5s ease-out;
}

/* Hover effects for buttons */
.btn-primary {
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.btn-outline-primary:hover {
    transform: translateY(-1px);
}

/* Form switch customization */
.form-switch .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Table row striping for amortization */
.table tbody tr:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}