/* Loan Calculator Styles */
.loan-type-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.loan-type {
    flex: 1;
    min-width: 120px;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.loan-type:hover {
    background: #e0e7ff;
    transform: translateY(-2px);
}

.loan-type.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.loan-type i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}

.loan-type span {
    font-weight: 600;
    font-size: 0.875rem;
}

/* Term selector */
.term-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.term-button {
    padding: 0.5rem 1rem;
    background: var(--light-gray);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
}

.term-button:hover {
    background: #e0e7ff;
}

.term-button.active {
    background: var(--primary);
    color: white;
}

.custom-term {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.custom-term input {
    width: 100px;
}

.rate-info {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 0.25rem;
    padding: 0.25rem 0.5rem;
    background-color: #f0f9ff;
    border-radius: 4px;
    display: inline-block;
}

/* Comparison table */
.comparison-table {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8fafc;
    border-radius: var(--radius);
}

.table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background-color: var(--light-gray);
    font-weight: 600;
    color: var(--text);
}

tbody tr:hover {
    background-color: #f0f9ff;
}

/* Chart container */
.breakdown-chart {
    margin-top: 1rem;
    position: relative;
    height: 200px;
}

/* Responsive */
@media (max-width: 768px) {
    .loan-type-selector {
        flex-direction: column;
    }
    
    .term-selector {
        flex-direction: column;
    }
    
    .term-button {
        width: 100%;
    }
}