.calculator-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

/* 입력 필드 스타일링 */
.calculator-container .input-group {
    margin-bottom: 24px;
    position: relative;
}

.calculator-container .input-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 15px;
}

.calculator-container .input-group input,
.calculator-container .input-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background: #f8f9fa;
}

/* 대출 기간 입력 그룹 */
.term-inputs {
    display: flex;
    gap: 12px;
}

.term-inputs input {
    flex: 1;
}

/* 셀렉트 박스 스타일링 */
.calculator-container .input-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 16px) center;
    padding-right: 40px;
    cursor: pointer;
}

.calculator-container .input-group input:focus,
.calculator-container .input-group select:focus {
    outline: none;
    border-color: #2196F3;
    background: white;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.1);
}

/* 계산하기 버튼 */
#calculateLoan {
    width: 100%;
    padding: 14px 20px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin: 20px 0;
}

#calculateLoan:hover {
    background: #1976D2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

/* 결과 컨테이너 */
.result-container {
    margin-top: 30px;
    display: none;
}

.result-container.show {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

/* 대출 요약 정보 */
.loan-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-radius: 6px;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.summary-item:last-child {
    margin-bottom: 0;
    background: #e3f2fd;
    color: #1976D2;
    font-weight: 600;
}

.summary-item .label {
    color: #555;
    font-weight: 500;
}

.summary-item .value {
    font-weight: 600;
}

/* 상환 스케줄 스타일링 */
.schedule-container {
    margin-top: 40px;
    display: none;
    overflow-x: auto;
}

.schedule-container.show {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

.schedule-container h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.schedule-table th,
.schedule-table td {
    padding: 12px 16px;
    text-align: right;
    border-bottom: 1px solid #eee;
}

.schedule-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.schedule-table td:first-child {
    text-align: center;
    color: #666;
}

.schedule-table tbody tr:hover {
    background: #f8f9fa;
}

.schedule-table tbody tr:last-child td {
    border-bottom: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .calculator-container {
        padding: 20px;
        margin: 0 15px;
    }
    
    .schedule-table {
        font-size: 14px;
    }
    
    .schedule-table th,
    .schedule-table td {
        padding: 10px 12px;
    }
    
    .term-inputs {
        flex-direction: column;
    }
}

/* 스크롤바 스타일링 */
.schedule-container::-webkit-scrollbar {
    height: 8px;
}

.schedule-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.schedule-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.schedule-container::-webkit-scrollbar-thumb:hover {
    background: #999;
} 