.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-type {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 8px;
    border-radius: 8px;
}

.type-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.type-btn:hover {
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}

.type-btn.active {
    background: #2196F3;
    color: white;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

/* 입력 필드 스타일링 */
.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 {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background: #f8f9fa;
}

.calculator-container .input-group input:focus {
    outline: none;
    border-color: #2196F3;
    background: white;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.1);
}

.calculator-container .input-group input::placeholder {
    color: #aaa;
}

/* 숫자 입력 화살표 스타일링 */
.calculator-container .input-group input[type="number"]::-webkit-inner-spin-button,
.calculator-container .input-group input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
    height: 30px;
    margin-right: 8px;
}

/* 계산하기 버튼 */
#calculateSavings {
    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;
}

#calculateSavings:hover {
    background: #1976D2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2);
}

#calculateSavings:active {
    transform: translateY(0);
}

/* 결과 표시 영역 */
.result-box {
    margin-top: 30px;
    padding: 20px;
    border-radius: 8px;
    background: #f8f9fa;
    animation: fadeIn 0.3s ease-in-out;
}

.result-detail {
    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);
}

.result-detail:last-child {
    margin-bottom: 0;
    background: #e3f2fd;
    color: #1976D2;
    font-weight: 600;
}

.result-label {
    color: #555;
    font-weight: 500;
}

.result-value {
    font-weight: 600;
}

/* 폼 전환 애니메이션 */
#periodForm, #amountForm {
    animation: fadeIn 0.3s ease-in-out;
}

@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;
    }
    
    .calculator-type {
        flex-direction: column;
        gap: 8px;
    }
    
    .type-btn {
        width: 100%;
        padding: 10px 16px;
    }
    
    .calculator-container .input-group input {
        font-size: 15px;
    }
    
    .result-detail {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }
} 